diff --git a/application/schemas/__init__.py b/application/schemas/__init__.py index 30de9fa48588f2b01e384fd0ed9ac13e58b714e3..eb616de08fc7065f7a4206d3a7a9be109023f612 100644 --- a/application/schemas/__init__.py +++ b/application/schemas/__init__.py @@ -6,7 +6,7 @@ # @Author : StudentCWZ # @Email : StudentCWZ@outlook.com # @Date : 2023/10/28 22:31 -# @File : __init__.py.py +# @File : __init__.py # @Description : """ diff --git a/application/schemas/request/__init__.py b/application/schemas/request/__init__.py index e3ee23ef34881813ae7a2f4e82d44ea19280cee5..1a1da558db02fada298ec0202af09a1274b2a4dc 100644 --- a/application/schemas/request/__init__.py +++ b/application/schemas/request/__init__.py @@ -6,7 +6,7 @@ # @Author : StudentCWZ # @Email : StudentCWZ@outlook.com # @Date : 2023/11/19 16:12 -# @File : __init__.py.py +# @File : __init__.py # @Description : """ diff --git a/application/schemas/request/log.py b/application/schemas/request/log.py index b42b60c2541af2b0763a2cb3f8318ce8dbba8e2c..db76cc93aae24ade5643cf9426412e8b898c5a64 100644 --- a/application/schemas/request/log.py +++ b/application/schemas/request/log.py @@ -7,13 +7,17 @@ # @Email : StudentCWZ@outlook.com # @Date : 2023/11/19 16:12 # @File : log.py -# @Description : +# @Description : Defines a Pydantic model for parsing log request items. """ +# Import custom modules from pydantic import BaseModel -from datetime import datetime class ParseLogRequestItem(BaseModel): + """ + A Pydantic model that represents a parse log request item. + Each instance of this class includes a start and end attribute. + """ start: str end: str diff --git a/application/script/__init__.py b/application/script/__init__.py index fad2e9a39c58d2b1f170f21c1e6f958f0bd4bc6c..1f75a12cf95ecf94e9de942f1b5faddf48b391bd 100644 --- a/application/script/__init__.py +++ b/application/script/__init__.py @@ -6,15 +6,26 @@ # @Author : StudentCWZ # @Email : StudentCWZ@outlook.com # @Date : 2023/10/29 11:21 -# @File : __init__.py.py -# @Description : +# @File : __init__.py +# @Description : Initializes the script for the Flask application. """ +# Import built-in modules from flask import Flask +# Import custom modules from .cmdline import init def init_script(app: Flask) -> None: + """ + Initialize the script for the Flask application. + + Args: + app (Flask): A Flask application instance. + + Returns: + None + """ app.cli.add_command(init)