Commit 52a1fac7 authored by Kai's avatar Kai

add logging info

parent 04b39703
......@@ -86,7 +86,8 @@ def get_home_recommend_topic_ids(user_id, device_id, tag_id, offset, size, query
cursor = int(str(click_recommend_topic_dict[b"cursor"], encoding="utf-8"))
newcursor = cursor + 2
if newcursor < 4 and len(click_recommend_topic_id_list) ==2:
click_recommend_topic_list = click_recommend_topic_id_list[cursor:newcursor]
for i in range(0,2):
click_recommend_topic_list.append(click_recommend_topic_id_list[i])
redis_client.hset(click_recommend_redis_key, "cursor", newcursor)
combine_recommend_topic_list_tmp = click_recommend_topic_list.extend(recommend_topic_list)
combine_recommend_topic_list = combine_recommend_topic_list_tmp[0:5]
......
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