Commit d7c891a2 authored by 李小芳's avatar 李小芳

Merge branch 'wordres' into 'master'

add

See merge request !31
parents ce9c7af5 be51b923
......@@ -174,7 +174,8 @@ def get_suggest_tips(query, lat, lng, offset=0, size=50):
QUERY_KEY = "query:search_tip"
query_base64 = base64.b64encode(query.encode('utf8')).decode('utf8')
if redis_client.hget(QUERY_KEY, query_base64) is not None:
value_data = json.loads(redis_client.hget(QUERY_KEY, query_base64))
logging.info("get type:%s" %type(str(redis_client.hget(QUERY_KEY, query_base64))))
value_data = json.loads(str(redis_client.hget(QUERY_KEY, query_base64)))
logging.info("get value_data:%s" % value_data)
if len(value_data) > 0:
......
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