10.25切分改为多线程
This commit is contained in:
parent
d0dd870a52
commit
ae5c77bd25
@ -177,8 +177,8 @@ def get_procurement_reqs():
|
|||||||
response = download_and_process_file_for_procurement(file_url)
|
response = download_and_process_file_for_procurement(file_url)
|
||||||
try:
|
try:
|
||||||
with open(final_res_path, 'w', encoding='utf-8') as json_file:
|
with open(final_res_path, 'w', encoding='utf-8') as json_file:
|
||||||
json.dump(final_res_path, json_file, ensure_ascii=False, indent=4)
|
json.dump(response, json_file, ensure_ascii=False, indent=4)
|
||||||
logger.info(f"摘取后的数据已保存到 '{final_res_path}'")
|
logger.info(f"技术参数要求已保存到 '{final_res_path}'")
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
logger.error(f"保存JSON文件时出错: {e}")
|
logger.error(f"保存JSON文件时出错: {e}")
|
||||||
return jsonify({
|
return jsonify({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user