Commit bfa9ab34 authored by 段英荣's avatar 段英荣

modify bug

parent 8523bef7
......@@ -68,12 +68,11 @@ def get_home_recommend_topic_ids(user_id,device_id,offset,size,query=None,query_
unread_topic_id_dict = dict()
have_read_topic_id_set = set()
ori_unread_topic_id_dict = dict()
if redis_field_val_list[1] and offset>0:
if (user_id>0 and offset==last_offset_num) or user_id==-1:
ori_unread_topic_id_dict = json.loads(redis_field_val_list[1])
topic_id_dict = ori_unread_topic_id_dict.update(topic_id_dict)
if len(ori_unread_topic_id_dict) > 0:
topic_id_dict.update(ori_unread_topic_id_dict)
for have_read_item in redis_field_val_list[2:]:
if have_read_item:
......
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