From ae5c77bd2562478fd5395b3fca408ff9f93954d8 Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Sun, 27 Oct 2024 13:44:36 +0800 Subject: [PATCH] =?UTF-8?q?10.25=E5=88=87=E5=88=86=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=A4=9A=E7=BA=BF=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_app/main/start_up.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_app/main/start_up.py b/flask_app/main/start_up.py index e73963f..bf8dcce 100644 --- a/flask_app/main/start_up.py +++ b/flask_app/main/start_up.py @@ -177,8 +177,8 @@ def get_procurement_reqs(): response = download_and_process_file_for_procurement(file_url) try: with open(final_res_path, 'w', encoding='utf-8') as json_file: - json.dump(final_res_path, json_file, ensure_ascii=False, indent=4) - logger.info(f"摘取后的数据已保存到 '{final_res_path}'") + json.dump(response, json_file, ensure_ascii=False, indent=4) + logger.info(f"技术参数要求已保存到 '{final_res_path}'") except IOError as e: logger.error(f"保存JSON文件时出错: {e}") return jsonify({