Commit 86732b6a authored by 张彦钊's avatar 张彦钊

change test file

parent 0b12b25b
......@@ -82,7 +82,7 @@ def tractate_write(device_id,cid):
r = redis.Redis(host="172.16.40.135", port=5379, password="")
key = str(device_id) + "_dislike_tractate"
if r.exists(key):
value = json.loads(r.get(key))
value = eval(r.get(key))
value.extend(cids)
cids = json.dumps(list(set(value)))
r.set(key, json.dumps(cids))
......
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