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

add batch_recommend_user

parent 6e35b198
......@@ -269,6 +269,8 @@ class UserUtils(object):
recommend_user_list = list()
for item in res_item["hits"]["hits"]:
recommend_user_list.append(item["_source"]["user_id"])
logging.info("duan add,attention_user_id_list:%s,user_index:%d" % (str(attention_user_id_list), user_index))
result_dict[attention_user_id_list[user_index]] = recommend_user_list
user_index += 1
......
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