Commit 82eff02c authored by litaolemo's avatar litaolemo

update

parent 01b7641a
......@@ -144,13 +144,16 @@ def get_es_word(word,start_ts):
craw_level_count = results["aggregations"]["content_level"]["buckets"]
res_list = []
# 可见3456星帖子
for content_level in ("3","4","5","6"):
doc_count = 0
for content_level_dic in content_level_count:
if content_level_dic["keys"] == content_level:
doc_count = content_level_dic["doc_count"]
break
res_list.append(doc_count)
try:
for content_level in ("3","4","5","6"):
doc_count = 0
for content_level_dic in content_level_count:
if content_level_dic["keys"] == content_level:
doc_count = content_level_dic["doc_count"]
break
res_list.append(doc_count)
except:
print("craw_level_count error" ,craw_level_count)
res_list.append(craw_tractate_num)
for content_level in ("3","4","5","6"):
doc_count = 0
......
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