Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
42c887d9
Commit
42c887d9
authored
Aug 29, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add print
parent
be8e9ff8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
diaryQueueUpdate.py
diaryQueueUpdate.py
+1
-3
utils.py
utils.py
+4
-0
No files found.
diaryQueueUpdate.py
View file @
42c887d9
...
...
@@ -171,9 +171,7 @@ def update_sql_dairy_queue(queue_name, diary_id,device_id, city_id):
cursor
.
execute
(
sql
)
db
.
commit
()
db
.
close
()
global
update_queue_numbers
update_queue_numbers
+=
1
print
(
"更新队列总个数:{}"
.
format
(
update_queue_numbers
))
print
(
"成功写入diary_id"
)
def
get_queue
(
device_id
,
city_id
,
queue_name
):
...
...
utils.py
View file @
42c887d9
...
...
@@ -63,7 +63,11 @@ def queue_compare(old_list, new_list):
for
key
in
x_dict
.
keys
():
if
x_dict
[
key
]
!=
y_dict
[
key
]:
i
+=
1
global
update_queue_numbers
print
(
"更新日记队列总数:{}"
.
format
(
update_queue_numbers
))
if
i
>
0
:
update_queue_numbers
+=
1
print
(
"更新日记队列总数:{}"
.
format
(
update_queue_numbers
))
print
(
"日记队列更新前日记总个数{},位置发生变化个数{},发生变化率{}
%
"
.
format
(
len
(
old_list
),
i
,
round
(
i
/
len
(
old_list
)
*
100
),
2
))
...
...
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