From 07a805f8e768ee2080177c2cc6870f640ff0e48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=BA=E4=B9=8B?= <560397@gree.com.cn> Date: Tue, 21 Nov 2023 11:36:03 +0800 Subject: [PATCH] Update project --- application/script/cmdline.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/application/script/cmdline.py b/application/script/cmdline.py index 913dca2..3646d47 100644 --- a/application/script/cmdline.py +++ b/application/script/cmdline.py @@ -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() -- GitLab