Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张晓彤
integrated-scheduling-v3
Commits
7856246e
Commit
7856246e
authored
Sep 13, 2022
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试问题修复
parent
0619e46c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
topo_update.py
graph/topo_update.py
+2
-2
settings.py
settings.py
+2
-2
调度系统部署说明4.1.docx
调度系统部署说明4.1.docx
+0
-0
No files found.
graph/topo_update.py
View file @
7856246e
...
@@ -24,10 +24,10 @@ def topo_graph_update():
...
@@ -24,10 +24,10 @@ def topo_graph_update():
c
=
conn
.
cursor
()
c
=
conn
.
cursor
()
print
(
"数据库打开成功"
)
print
(
"数据库打开成功"
)
cursor
=
c
.
execute
(
"DROP TABLE GRAPH_EDGE"
)
cursor
=
c
.
execute
(
"DROP TABLE
IF EXISTS
GRAPH_EDGE"
)
conn
.
commit
()
conn
.
commit
()
cursor
=
c
.
execute
(
"DROP TABLE GRAPH_NODE"
)
cursor
=
c
.
execute
(
"DROP TABLE
IF EXISTS
GRAPH_NODE"
)
conn
.
commit
()
conn
.
commit
()
cursor
=
c
.
execute
(
"CREATE TABLE GRAPH_EDGE(id VARCHAR(30) PRIMARY KEY, startNodeId VARCHAR(30), endNodeId VARCHAR(30), distance FLOAT, type INT, lanes_sql VARCHAR(100))"
)
cursor
=
c
.
execute
(
"CREATE TABLE GRAPH_EDGE(id VARCHAR(30) PRIMARY KEY, startNodeId VARCHAR(30), endNodeId VARCHAR(30), distance FLOAT, type INT, lanes_sql VARCHAR(100))"
)
...
...
settings.py
View file @
7856246e
...
@@ -67,8 +67,8 @@ def set_log():
...
@@ -67,8 +67,8 @@ def set_log():
# timefilehandler = logging.handlers.TimedRotatingFileHandler(log_path + "/dispatch.log", when='M', interval=1, backupCount=60)
# timefilehandler = logging.handlers.TimedRotatingFileHandler(log_path + "/dispatch.log", when='M', interval=1, backupCount=60)
#
filehandler = logging.handlers.RotatingFileHandler(log_path + "/dispatch.log", maxBytes=30*1024*1024, backupCount=10, encoding="utf-8")
filehandler
=
logging
.
handlers
.
RotatingFileHandler
(
log_path
+
"/dispatch.log"
,
maxBytes
=
30
*
1024
*
1024
,
backupCount
=
10
,
encoding
=
"utf-8"
)
filehandler
=
logging
.
handlers
.
RotatingFileHandler
(
"./Logs/dispatch.log"
,
maxBytes
=
3
*
1024
*
1024
,
backupCount
=
10
,
encoding
=
"utf-8"
)
#
filehandler = logging.handlers.RotatingFileHandler("./Logs/dispatch.log", maxBytes=3 * 1024 * 1024, backupCount=10, encoding="utf-8")
# 设置后缀名称,跟strftime的格式一样
# 设置后缀名称,跟strftime的格式一样
filehandler
.
suffix
=
"
%
Y-
%
m-
%
d_
%
H-
%
M.log"
filehandler
.
suffix
=
"
%
Y-
%
m-
%
d_
%
H-
%
M.log"
...
...
调度系统部署说明4.1.docx
View file @
7856246e
No preview for this file type
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