Commit 3671bdb4 authored by 张彦钊's avatar 张彦钊

add print

parent 50f01f00
......@@ -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("成功写入")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment