Commit f0fa2b16 authored by 黄凯's avatar 黄凯

Merge branch 'hk_now' into 'master'

add logging info

See merge request alpha/physical!253
parents 54df8a8d 04b39703
......@@ -85,7 +85,7 @@ def get_home_recommend_topic_ids(user_id, device_id, tag_id, offset, size, query
click_recommend_topic_id_list = json.loads(click_recommend_topic_dict[b"data"])
cursor = int(str(click_recommend_topic_dict[b"cursor"], encoding="utf-8"))
newcursor = cursor + 2
if len(click_recommend_topic_id_list) > newcursor:
if newcursor < 4 and len(click_recommend_topic_id_list) ==2:
click_recommend_topic_list = click_recommend_topic_id_list[cursor:newcursor]
redis_client.hset(click_recommend_redis_key, "cursor", newcursor)
combine_recommend_topic_list_tmp = click_recommend_topic_list.extend(recommend_topic_list)
......
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