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

modify

parent 7f859da5
...@@ -95,7 +95,10 @@ def pick_topic(user_id,pick_id,offset=0,size=10): ...@@ -95,7 +95,10 @@ def pick_topic(user_id,pick_id,offset=0,size=10):
"include":["id"] "include":["id"]
} }
result_dict = ESPerform.get_search_results(ESPerform.get_cli(),sub_index_name="topic",query_body=q,offset=offset,size=size) result_dict = ESPerform.get_search_results(ESPerform.get_cli(),sub_index_name="topic",query_body=q,offset=offset,size=size)
recommend_pick_topic_list = [item["id"] for item in result_dict["hits"]]
recommend_pick_topic_list = []
if len(result_dict["hits"]) > 0:
recommend_pick_topic_list = [item["_source"]["id"] for item in result_dict["hits"]]
key_exist = len(have_read_pick_topic_ids) > 0 key_exist = len(have_read_pick_topic_ids) > 0
......
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