Commit 58ef93f4 authored by lixiaofang's avatar lixiaofang

str

parent 86fe45a9
...@@ -202,7 +202,7 @@ class QueryWordAttr(object): ...@@ -202,7 +202,7 @@ class QueryWordAttr(object):
redis_data = redis_client.get(key) redis_data = redis_client.get(key)
redis_client.expire(key, 10 * 60) redis_client.expire(key, 10 * 60)
if redis_data: if redis_data:
redis_data = json.loads(redis_data) redis_data = json.loads(str(redis_data, encoding="utf8"))
if lower_query in redis_data: if lower_query in redis_data:
return False return False
else: else:
......
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