Commit 1854ec70 authored by 张彦钊's avatar 张彦钊

change test file

parent 3b6dcb48
......@@ -68,7 +68,7 @@ def write_redis(device_id,cid_list):
cursor = db.cursor()
cursor.execute(sql)
result = cursor.fetchall()
tags = list(set([i[0] for i in result]))
tags = result[0][0]
return tags
if len(tags) != 0:
sql = "select a.id from src_mimas_prod_api_diary a left join src_mimas_prod_api_diary_tags b " \
......
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