Commit 7bbda6d5 authored by 赵威's avatar 赵威

update debug info

parent c8d7df61
...@@ -158,9 +158,12 @@ def get_lintags_by_user_id(user_id): ...@@ -158,9 +158,12 @@ def get_lintags_by_user_id(user_id):
print(redis_client.info) print(redis_client.info)
try: try:
tag_data = redis_client.get(redis_key) tag_data = redis_client.get(redis_key)
print(tag_data) lintags = []
tag_list = json.loads(str(tag_data[:3], encoding="utf-8")) if tag_data else [] if tag_data is None:
print(tag_list) lintags = []
else:
lintags = json.loads(str(tag_data, encoding="utf-8"))
print(lintags)
print("=====") print("=====")
except Exception as e: except Exception as e:
print(e) print(e)
......
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