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
12726f1c
Commit
12726f1c
authored
Nov 18, 2022
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库编码问题修复
parent
335c1e91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
static_data_process.py
data/static_data_process.py
+1
-1
No files found.
data/static_data_process.py
View file @
12726f1c
...
@@ -87,7 +87,7 @@ def build_truck_uuid_name_map():
...
@@ -87,7 +87,7 @@ def build_truck_uuid_name_map():
try
:
try
:
for
item
in
session_mysql
.
query
(
Equipment
)
.
filter_by
(
EQUIPMENT_TYPE_ID
=
1
)
.
all
():
for
item
in
session_mysql
.
query
(
Equipment
)
.
filter_by
(
EQUIPMENT_TYPE_ID
=
1
)
.
all
():
truck_id
=
str
(
item
.
EQUIPMENT_ID
)
truck_id
=
str
(
item
.
EQUIPMENT_ID
)
truck_name
=
item
.
EQUIPMENT_NAME
.
encode
(
"latin-1"
)
.
decode
(
"GBK"
,
"ignore"
)
truck_name
=
item
.
EQUIPMENT_NAME
.
encode
(
"latin-1"
,
'ignore'
)
.
decode
(
"GBK"
,
"ignore"
)
truck_name_to_uuid_dict
[
truck_name
]
=
truck_id
truck_name_to_uuid_dict
[
truck_name
]
=
truck_id
truck_uuid_to_name_dict
[
truck_id
]
=
truck_name
truck_uuid_to_name_dict
[
truck_id
]
=
truck_name
...
...
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