Commit 4755c942 authored by 段英荣's avatar 段英荣

modify

parent 4ded33a6
......@@ -50,7 +50,10 @@ def home_recommend(session_id="",user_id=-1,offset=0,size=10):
if (user_id>0 and offset==last_offset_num) or user_id==-1:
ori_unread_topic_id_list = json.loads(redis_field_val_list[1])
topic_id_list = ori_unread_topic_id_list + topic_id_list
logging.info("duan add,redis_field_val_list_1111:%d" % len(redis_field_val_list))
for have_read_item in redis_field_val_list[2:]:
logging.info("duan add,redis_field_val_list_OOOO:%s" % str(have_read_item))
if have_read_item:
have_read_topic_id_set.union(json.loads(have_read_item))
#if user_id==-1:
......
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