Commit 242321f6 authored by 段英荣's avatar 段英荣

Merge branch 'hk_now' into 'master'

bug fix

See merge request alpha/physical!238
parents c31da3e0 2c4a1d66
......@@ -74,13 +74,15 @@ class CollectData(object):
have_read_topic_id_list = Tools.get_have_read_topic_id_list(device_id,-1,TopicPageType.HOME_RECOMMEND)
recommend_topic_id_list = list()
if click_topic_tag_list:
recommend_topic_id_list_click = list()
if len(click_topic_tag_list)>0 and click_topic_tag_list:
recommend_topic_id_list_click = ESPerform.get_tag_topic_list(click_topic_tag_list,
have_read_topic_id_list)
if len(recommend_topic_id_list_click) > 0:
num = min(len(recommend_topic_id_list_click), 2)
recommend_topic_id_list.extend(recommend_topic_id_list_click[0:num])
tag_topic_id_list = list()
tag_id_list = recommend_tag_list[0:100]
tag_topic_id_list = ESPerform.get_tag_topic_list(tag_id_list,have_read_topic_id_list)
recommend_topic_id_list.extend(tag_topic_id_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