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

change test file

parent 55f86ab6
......@@ -117,6 +117,7 @@ def question_write(device_id,cid):
result = cursor.fetchall()
db.close()
if len(result) > 0:
print("have data")
cids = [i[0] for i in result]
r = redis.Redis(host="172.16.40.135", port=5379, password="", db=2)
......@@ -192,7 +193,7 @@ def diary_write(device_id,cid):
# ssc.start()
# ssc.awaitTermination()
question_write("hello",226737)
question_write("hello",6)
......
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