Commit 46d569c6 authored by Kai's avatar Kai

bug fix

parent 954ca95f
......@@ -99,9 +99,8 @@ class CollectData(object):
tag_topic_id_list = ESPerform.get_tag_topic_list(tag_id_list,have_read_topic_id_list)
topic_recommend_redis_key = self.linucb_recommend_topic_id_prefix + str(device_id)
if click_topic_tag_list:
if len(click_topic_tag_list)>0:
tag_topic_id_list = click_topic_tag_list + tag_topic_id_list
if len(recommend_topic_id_list):
tag_topic_id_list = recommend_topic_id_list + tag_topic_id_list
else:
redis_topic_data_dict = redis_client.hgetall(topic_recommend_redis_key)
redis_topic_list = 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