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

modify

parent a0c2011b
......@@ -32,7 +32,7 @@ def home_recommend(session_id="",user_id=-1,offset=0,size=10):
for page_id in range(0,offset,size):
redis_field_list.append(str(page_id))
redis_field_val_list = redis_client.hmget(redis_key,redis_field_list)
logging.info("duan add,redis_field_list:%s,redis_field_val_list:%s" % (str(redis_field_list),str(redis_field_val_list)))
#logging.info("duan add,redis_field_list:%s,redis_field_val_list:%s" % (str(redis_field_list),str(redis_field_val_list)))
#redis_val_dict = redis_client.hgetall(redis_key)
last_offset_num = int(redis_field_val_list[0]) if redis_field_val_list[0] else -1
......@@ -56,6 +56,7 @@ def home_recommend(session_id="",user_id=-1,offset=0,size=10):
#if user_id==-1:
# topic_id_list = list(set([item["id"] for item in topic_id_list]).difference(have_read_topic_id_set))
logging.info("duan add,have_read_topic_id_set:%s" % str(have_read_topic_id_set))
for item in topic_id_list:
if item["group_id"] in have_read_group_id_set:
unread_topic_id_list.append(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