Commit 07a805f8 authored by 崔为之's avatar 崔为之 💪🏽

Update project

parent dd275c94
......@@ -7,9 +7,10 @@
# @Email : StudentCWZ@outlook.com
# @Date : 2023/10/29 11:21
# @File : cmdline.py
# @Description :
# @Description : Defines the initial command line interface for the Flask application.
"""
# Import third-party modules
import click
from flask.cli import with_appcontext
......@@ -17,9 +18,14 @@ from flask.cli import with_appcontext
@click.command("init")
@with_appcontext
def init():
"""Create a new log"""
"""
Initialize the application by creating a new log entry.
This command is to be used with the Flask application context.
"""
from application.extensions.init_sqlalchemy import db
# Uncomment below lines to create a new log entry.
# click.echo("create log")
# db.session.add(user)
# db.session.commit()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment