Commit 0f9ab924 authored by 赵威's avatar 赵威

update printer

parent 32da5ed5
...@@ -40,8 +40,9 @@ def save_diary_image_info(file): ...@@ -40,8 +40,9 @@ def save_diary_image_info(file):
with open(file, "w"): with open(file, "w"):
step = 100 step = 100
for i in range(0, 500000, step): # for i in range(0, 500000, step):
res_dict = es_query("diary", q, 0, step) res_dict = es_query("diary", q, 0, step)
print(res_dict)
for item in res_dict["hits"]: for item in res_dict["hits"]:
diary_id = item["_source"]["id"] diary_id = item["_source"]["id"]
......
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