Commit 11234898 authored by lixiaofang's avatar lixiaofang

add

parent 09c3309d
......@@ -87,7 +87,7 @@ def get_suggest_tips(query, lat, lng, offset=0, size=50):
return ret_list
else:
QUERY_KEY = "query:{}:search_tips"
QUERY_KEY = "query:{}:search_tip"
query_base64 = base64.b64encode(query.encode('utf8')).decode('utf8')
key = QUERY_KEY.format(query_base64)
labels = list(map(lambda x: x.decode("utf8"), list(redis_client.smembers(key))))
......
......@@ -146,7 +146,7 @@ class WordResemble(object):
def set_data_to_redis(cls, instance):
try:
QUERY_KEY = "query:{}:search_tips"
QUERY_KEY = "query:{}:search_tip"
tips_num_redis_key_prefix = "search_tips:tips_mapping_num"
# result = wordresemble.WordRel.objects.all().values("keyword", "id")
......
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