Commit 455eaed0 authored by lixiaofang's avatar lixiaofang

add

parent 201c6a40
...@@ -112,7 +112,7 @@ def pictorial_topic(topic_id=-1, offset=0, size=10): ...@@ -112,7 +112,7 @@ def pictorial_topic(topic_id=-1, offset=0, size=10):
pictorial_ids_list = [] pictorial_ids_list = []
topic_tag_list = [] topic_tag_list = []
if len(result_dict["hits"]) > 0: if len(result_dict["hits"]) > 0:
pictorial_ids_list = [item["_source"]["id"] for item in result_dict["hits"]] # pictorial_ids_list = [item["_source"]["pictorial_id"] for item in result_dict["hits"]] #
topic_tag_list = [item["_source"]["tag_list"] for item in result_dict["hits"]] # topic_tag_list = [item["_source"]["tag_list"] for item in result_dict["hits"]] #
q["query"] = { q["query"] = {
......
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