Commit 7641a9e5 authored by 段英荣's avatar 段英荣

modify

parent 7fb7557b
......@@ -28,7 +28,8 @@ def pick_celebrity(user_id,pick_id,offset=0,size=10):
recommend_pick_celebrity_list = PickUtils.get_recommend_celebrity_id_list(pick_id,have_read_pick_celebrity_ids,offset,size)
if len(recommend_pick_celebrity_list) > 0:
PickUtils.refresh_redis_data(have_read_celebrity_list=have_read_pick_celebrity_ids.extend(recommend_pick_celebrity_list),
total_read_celebrity_ids = have_read_pick_celebrity_ids + recommend_pick_celebrity_list
PickUtils.refresh_redis_data(have_read_celebrity_list=total_read_celebrity_ids,
redis_cli=redis_client,redis_key=redis_key)
return {"recommend_pick_celebrity_ids": recommend_pick_celebrity_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