Commit 140a4a7a authored by 段英荣's avatar 段英荣

modify

parent d45b297b
......@@ -45,7 +45,8 @@ def pick_topic(user_id,pick_id,offset=0,size=10):
try:
redis_celebrity_info = redis_client.get(redis_key)
have_read_pick_topic_ids = json.loads(redis_celebrity_info)
if redis_celebrity_info:
have_read_pick_topic_ids = json.loads(redis_celebrity_info)
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......@@ -85,7 +86,7 @@ def pick_topic(user_id,pick_id,offset=0,size=10):
}
q["query"] = {
"funciton_score":query_function_score
"function_score":query_function_score
}
q["sort"] = [
"_score"
......
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