Commit 8b55b39d authored by 黄凯's avatar 黄凯

Merge branch 'hk_now' into 'master'

bug fix

See merge request alpha/physical!254
parents f0fa2b16 52a1fac7
...@@ -86,7 +86,8 @@ def get_home_recommend_topic_ids(user_id, device_id, tag_id, offset, size, query ...@@ -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")) cursor = int(str(click_recommend_topic_dict[b"cursor"], encoding="utf-8"))
newcursor = cursor + 2 newcursor = cursor + 2
if newcursor < 4 and len(click_recommend_topic_id_list) ==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) 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_tmp = click_recommend_topic_list.extend(recommend_topic_list)
combine_recommend_topic_list = combine_recommend_topic_list_tmp[0:5] 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