Commit 102aea36 authored by 张彦钊's avatar 张彦钊

如果日记队列顺序没有发生变化,就不更新数据库了

parent eb12f2fc
......@@ -210,11 +210,12 @@ def queue_compare(old_list, new_list):
for key in x_dict.keys():
if x_dict[key] != y_dict[key]:
i += 1
if i >0:
print("日记队列更新前日记总个数{},位置发生变化个数{},发生变化率{}%".format(len(old_list), i,
round(i / len(old_list) * 100), 2))
return True
else:
return False
def get_queue(device_id, city_id,queue_name):
......
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