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

change test file

parent 7373900a
...@@ -209,7 +209,7 @@ def tractate_write(device_id,cid): ...@@ -209,7 +209,7 @@ def tractate_write(device_id,cid):
r = redis.Redis(host="172.16.40.135", port=5379, password="") r = redis.Redis(host="172.16.40.135", port=5379, password="")
key = str(device_id) + "_dislike_tractate" key = str(device_id) + "_dislike_tractate"
if r.exists(key): if r.exists(key):
value = r.get(key).split(b",") value = r.get(key).split(",")
value.extend(cids) value.extend(cids)
value = ",".join([str(i) for i in set(value)]) value = ",".join([str(i) for i in set(value)])
cids = json.dumps(value) cids = json.dumps(value)
......
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