Commit 7d327db4 authored by 张彦钊's avatar 张彦钊

change test file

parent 9d13df21
......@@ -22,12 +22,11 @@ def get_user_profile(device_id = "9C5E7C73-380C-4623-8F48-A64C8034E315"):
r = redis.Redis(host="172.16.40.135", port=5379, password="", db=2)
key = "user:portrait_tags:cl_id:" + str(device_id)
tmp = json.loads(r.get(key).decode('utf-8'))
print(type(tmp))
search_tag = {}
for i in tmp:
if i["content"] in name_tag.keys():
search_tag[i["content"]] = i["score"]
tmp.pop(i)
tmp.pop(tmp.index(i))
print(search_tag)
print("filter")
print(tmp)
......
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