Commit aefd29f9 authored by litaolemo's avatar litaolemo

update

parent 97661730
......@@ -196,7 +196,7 @@ def get_card_id():
"qa": []
}
for res in sql_res:
print(res)
# print(res)
card_content_type = res.card_content_type
card_id = res.card_id
if card_content_type in res_dict:
......
......@@ -446,7 +446,7 @@ def from_id_get_tag(card_id_dict):
index = 'gm-dbmw-tractate-read'
doc_type = 'tractate'
for card_id in card_id_dict[card_type]:
res = es.get_source(index,card_id,doc_type=doc_type)
res = es.get_source(index,doc_type,card_id)
print(res)
first_demands = res.get("first_demands")
second_demands = res.get("second_demands")
......@@ -474,6 +474,7 @@ def parse_data():
article_num_dict = get_es_article_num(all_tags)
# 获取曝光的id
card_id_dict = get_card_id()
print(card_id_dict)
# 获取曝光id对应的标签
word_count_exposure = from_id_get_tag(card_id_dict)
......
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