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
3671bdb4
Commit
3671bdb4
authored
Aug 22, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add print
parent
50f01f00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
diaryQueueUpdate.py
diaryQueueUpdate.py
+2
-2
No files found.
diaryQueueUpdate.py
View file @
3671bdb4
...
...
@@ -180,7 +180,7 @@ def update_dairy_queue(score_df):
diary_id
.
insert
(
i
,
j
)
i
+=
5
print
(
"排序成功1"
)
print
(
diary_id
)
return
diary_id
else
:
score_df
=
score_df
.
sort_values
(
by
=
"score"
,
ascending
=
False
)
...
...
@@ -196,7 +196,7 @@ def update_sql_dairy_queue(queue_name, diary_id):
print
(
"写入连接成功"
)
## 去除diary_id 前面的"diary|"
diary_id
=
list
(
map
(
lambda
x
:
x
[
6
:],
diary_id
))
sql
=
"update device_diary_queue set {}=
'{}'
where device_id = '{}'"
.
format
(
queue_name
,
diary_id
,
device_id
)
sql
=
"update device_diary_queue set {}=
{}
where device_id = '{}'"
.
format
(
queue_name
,
diary_id
,
device_id
)
cursor
.
execute
(
sql
)
db
.
close
()
print
(
"成功写入"
)
...
...
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