Commit 0c1bc073 authored by 张彦钊's avatar 张彦钊

change test file

parent 3629e802
...@@ -80,7 +80,7 @@ def tractate_write(device_id, cid): ...@@ -80,7 +80,7 @@ def tractate_write(device_id, cid):
cids = [i[0] for i in result] cids = [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="",db = 2)
key = str(device_id) + "_dislike_tractate" key = str(device_id) + "_dislike_tractate"
if r.exists(key): if r.exists(key):
value = json.loads(r.get(key).decode('utf-8')) value = json.loads(r.get(key).decode('utf-8'))
...@@ -238,7 +238,7 @@ def diary_write(device_id,cid): ...@@ -238,7 +238,7 @@ def diary_write(device_id,cid):
# ssc.start() # ssc.start()
# ssc.awaitTermination() # ssc.awaitTermination()
print(tractate_write("hello","10078")) print(tractate_write("hello",10078))
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