Commit dd275c94 authored by 崔为之's avatar 崔为之 💪🏽

Update project

parent e2b9f5d7
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# @Author : StudentCWZ # @Author : StudentCWZ
# @Email : StudentCWZ@outlook.com # @Email : StudentCWZ@outlook.com
# @Date : 2023/10/28 22:31 # @Date : 2023/10/28 22:31
# @File : __init__.py.py # @File : __init__.py
# @Description : # @Description :
""" """
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# @Author : StudentCWZ # @Author : StudentCWZ
# @Email : StudentCWZ@outlook.com # @Email : StudentCWZ@outlook.com
# @Date : 2023/11/19 16:12 # @Date : 2023/11/19 16:12
# @File : __init__.py.py # @File : __init__.py
# @Description : # @Description :
""" """
......
...@@ -7,13 +7,17 @@ ...@@ -7,13 +7,17 @@
# @Email : StudentCWZ@outlook.com # @Email : StudentCWZ@outlook.com
# @Date : 2023/11/19 16:12 # @Date : 2023/11/19 16:12
# @File : log.py # @File : log.py
# @Description : # @Description : Defines a Pydantic model for parsing log request items.
""" """
# Import custom modules
from pydantic import BaseModel from pydantic import BaseModel
from datetime import datetime
class ParseLogRequestItem(BaseModel): 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 start: str
end: str end: str
...@@ -6,15 +6,26 @@ ...@@ -6,15 +6,26 @@
# @Author : StudentCWZ # @Author : StudentCWZ
# @Email : StudentCWZ@outlook.com # @Email : StudentCWZ@outlook.com
# @Date : 2023/10/29 11:21 # @Date : 2023/10/29 11:21
# @File : __init__.py.py # @File : __init__.py
# @Description : # @Description : Initializes the script for the Flask application.
""" """
# Import built-in modules
from flask import Flask from flask import Flask
# Import custom modules
from .cmdline import init from .cmdline import init
def init_script(app: Flask) -> None: 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) app.cli.add_command(init)
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