Commit eb4fcf09 authored by 赵威's avatar 赵威

update data source

parent 23ec3978
......@@ -30,8 +30,7 @@ if __name__ == "__main__":
tractate_dict = {}
for item in get_tractate_info_from_es(["id", "portrait_tag_name"]):
id = item["_id"]
business_tags = item["portrait_tag_name"]
tractate_dict[id] = business_tags
tractate_dict[id] = item["_source"]["portrait_tag_name"]
print(len(tractate_dict))
print(random.choice(list(tractate_dict.items())))
......
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