Commit 70810e18 authored by Kai's avatar Kai

revise weight

parent 1d9875d7
......@@ -207,6 +207,7 @@ class TopicUtils(object):
if current_topic_id != -1:
if len(topic_tag_list) > 0:
topic_tag_list = topic_tag_list[0:100]
functions_list.append(
{
"filter": {"bool": {
......
......@@ -282,6 +282,13 @@ def topic_detail_page_recommend(device_id="", user_id=-1, topic_id=-1, topic_pic
result_list = TopicUtils.get_recommend_topic_ids(user_id, tag_id=-1, single_size=size, offset=offset, size=size,
topic_user_id=topic_user_id, current_topic_id=topic_id,
topic_tag_list=topic_tag_list)
topic_tag_recommend_list = TopicUtils.get_recommend_topic_ids(user_id, tag_id=-1, single_size=size, offset=offset, size=size,
topic_user_id=topic_user_id, current_topic_id=topic_id,
topic_tag_list=topic_tag_list)
recommend_topic_ids_list = list()
# if len(result_list) > 0:
# recommend_topic_ids_list = [item["_source"]["id"] for item in result_list]
......
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