Commit 31a04f4a authored by 段英荣's avatar 段英荣

modify

parent 53c532e7
...@@ -60,7 +60,7 @@ class DoctorTransfer(object): ...@@ -60,7 +60,7 @@ class DoctorTransfer(object):
redis_key_prefix = "search_tips:tips_mapping_num" redis_key_prefix = "search_tips:tips_mapping_num"
redis_data = redis_client.hget(redis_key_prefix,doctor_name) redis_data = redis_client.hget(redis_key_prefix,doctor_name)
redis_val_dict = json.loads(str(redis_data)) if redis_data else {} redis_val_dict = json.loads(str(redis_data,encoding="utf-8")) if redis_data else {}
total_count = doctor_results total_count = doctor_results
if 't' in redis_val_dict: if 't' in redis_val_dict:
......
...@@ -66,7 +66,7 @@ class ItemWikiTransfer(object): ...@@ -66,7 +66,7 @@ class ItemWikiTransfer(object):
redis_key_prefix = "search_tips:tips_mapping_num" redis_key_prefix = "search_tips:tips_mapping_num"
redis_data = redis_client.hget(redis_key_prefix,wiki_name) redis_data = redis_client.hget(redis_key_prefix,wiki_name)
redis_val_dict = json.loads(str(redis_data)) if redis_data else {} redis_val_dict = json.loads(str(redis_data,encoding="utf-8")) if redis_data else {}
total_count = doctor_results total_count = doctor_results
if 'w' in redis_val_dict: if 'w' in redis_val_dict:
......
...@@ -76,7 +76,7 @@ class TagTransfer(object): ...@@ -76,7 +76,7 @@ class TagTransfer(object):
redis_data = redis_client.hget(cls.tips_num_redis_key_prefix, tag_name) redis_data = redis_client.hget(cls.tips_num_redis_key_prefix, tag_name)
redis_val_dict = json.loads(str(redis_data)) if redis_data else {} redis_val_dict = json.loads(str(redis_data,encoding="utf-8")) if redis_data else {}
total_count = doctor_results total_count = doctor_results
if 's' in redis_val_dict: if 's' in redis_val_dict:
......
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