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

Update project

parent e2b9f5d7
......@@ -6,7 +6,7 @@
# @Author : StudentCWZ
# @Email : StudentCWZ@outlook.com
# @Date : 2023/10/28 22:31
# @File : __init__.py.py
# @File : __init__.py
# @Description :
"""
......
......@@ -6,7 +6,7 @@
# @Author : StudentCWZ
# @Email : StudentCWZ@outlook.com
# @Date : 2023/11/19 16:12
# @File : __init__.py.py
# @File : __init__.py
# @Description :
"""
......
......@@ -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
......@@ -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)
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