Commit 00539954 authored by 张彦钊's avatar 张彦钊

change test file

parent 8acda2ca
...@@ -76,7 +76,7 @@ def tractate_write(device_id,cid): ...@@ -76,7 +76,7 @@ def tractate_write(device_id,cid):
cursor.execute(sql) cursor.execute(sql)
result = cursor.fetchall() result = cursor.fetchall()
db.close() db.close()
cids = [i[0] for i in result] cids = [str(i[0]) for i in result]
if len(cids) != 0: if len(cids) != 0:
r = redis.Redis(host="172.16.40.135", port=5379, password="") r = redis.Redis(host="172.16.40.135", port=5379, password="")
......
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