Commit 4a7f0d36 authored by 高雅喆's avatar 高雅喆

bug fix

parent c042674c
......@@ -578,7 +578,7 @@ class TopicUtils(object):
}
},
"_source": {
"include": ["id", "edit_tag_list"]
"include": ["id", "edit_tag_id"]
}
}
result_dict = ESPerform.get_search_results(ESPerform.get_cli(), sub_index_name="pictorial",
......@@ -587,7 +587,7 @@ class TopicUtils(object):
pictorial_id_dict = dict()
for item in result_dict["hits"]:
pictorial_id_dict.update({item["_source"]["id"]: {"edit_tag_list": item["_source"]["edit_tag_list"]}})
pictorial_id_dict.update({item["_source"]["id"]: {"edit_tag_list": item["_source"]["edit_tag_id"]}})
return pictorial_id_dict
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
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