Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔为之
elp
Commits
dd275c94
Commit
dd275c94
authored
Nov 21, 2023
by
崔为之
💪🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update project
parent
e2b9f5d7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
6 deletions
+21
-6
application/schemas/__init__.py
application/schemas/__init__.py
+1
-1
application/schemas/request/__init__.py
application/schemas/request/__init__.py
+1
-1
application/schemas/request/log.py
application/schemas/request/log.py
+6
-2
application/script/__init__.py
application/script/__init__.py
+13
-2
No files found.
application/schemas/__init__.py
View file @
dd275c94
...
@@ -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 :
"""
"""
...
...
application/schemas/request/__init__.py
View file @
dd275c94
...
@@ -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 :
"""
"""
...
...
application/schemas/request/log.py
View file @
dd275c94
...
@@ -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
application/script/__init__.py
View file @
dd275c94
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment