Commit a049f11f authored by litaolemo's avatar litaolemo

update

parent 93462f5c
...@@ -234,6 +234,7 @@ def get_es_article_num(tag_dict, allow_tag=["first_demands", "second_demands", " ...@@ -234,6 +234,7 @@ def get_es_article_num(tag_dict, allow_tag=["first_demands", "second_demands", "
doc_type='tractate', doc_type='tractate',
timeout='10s', timeout='10s',
size=0, size=0,
body=body
) )
tractate_content_num = results["hits"]["total"] tractate_content_num = results["hits"]["total"]
...@@ -280,7 +281,7 @@ def get_es_article_num(tag_dict, allow_tag=["first_demands", "second_demands", " ...@@ -280,7 +281,7 @@ def get_es_article_num(tag_dict, allow_tag=["first_demands", "second_demands", "
diary_content_num = results["hits"]["total"] diary_content_num = results["hits"]["total"]
total_num = answer_content_num + tractate_content_num + diary_content_num total_num = answer_content_num + tractate_content_num + diary_content_num
data_dic = {tag_name: (answer_content_num, tractate_content_num, diary_content_num, total_num)} data_dic = {tag_name: (answer_content_num, tractate_content_num, diary_content_num, total_num)}
print(data_dic) # print(data_dic)
article_dict[tag_type].append(data_dic) article_dict[tag_type].append(data_dic)
return article_dict return article_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