Commit 01f3273d authored by 段英荣's avatar 段英荣

Merge branch 'similar_sort' into 'master'

modify

See merge request alpha/physical!155
parents 53cd0e26 af85b73e
...@@ -245,7 +245,7 @@ def topic_detail_page_recommend(device_id="",user_id=-1,topic_id=-1,topic_group_ ...@@ -245,7 +245,7 @@ def topic_detail_page_recommend(device_id="",user_id=-1,topic_id=-1,topic_group_
if have_read_topic_len>5000: if have_read_topic_len>5000:
have_read_topic_list = have_read_topic_list[(have_read_topic_len-5000):] have_read_topic_list = have_read_topic_list[(have_read_topic_len-5000):]
redis_client.set(json.dumps(have_read_topic_list)) redis_client.set(redis_key, json.dumps(have_read_topic_list))
return {"recommend_topic_ids": recommend_topic_ids_list} return {"recommend_topic_ids": recommend_topic_ids_list}
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
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