Commit a9bf1a63 authored by 赵威's avatar 赵威

update printer

parent 0f9ab924
......@@ -44,11 +44,11 @@ def save_diary_image_info(file):
res_dict = es_query("diary", q, 0, step)
print(res_dict)
for item in res_dict["hits"]:
for item in res_dict["hits"]["hits"]:
diary_id = item["_source"]["id"]
before_cover_url = item["_source"]["before_cover_url"] + "-w"
after_cover_url = item["_source"]["after_cover_url"] + "-w"
print(diary_id + " " + after_cover_url)
print(str(diary_id) + " " + after_cover_url)
def main():
......
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