From 45df7ea71400793f9d0861be24c6675ee54bdba7 Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Tue, 26 Nov 2024 13:48:25 +0800 Subject: [PATCH] =?UTF-8?q?11.26=20=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_app/general/接口_技术偏离表.py | 4 ++-- flask_app/货物标/截取pdf货物标版.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/flask_app/general/接口_技术偏离表.py b/flask_app/general/接口_技术偏离表.py index 62aec20..f533086 100644 --- a/flask_app/general/接口_技术偏离表.py +++ b/flask_app/general/接口_技术偏离表.py @@ -391,9 +391,9 @@ def get_tech_and_business_deviation(file_path,file_type,unique_id,output_folder) return tech_deviation,tech_star_deviation,business_deviation,business_star_deviation,zigefuhe_deviation if __name__ == "__main__": - file_path=r"C:\Users\Administrator\Desktop\fsdownload\db79e9e0-830e-442c-8cb6-1d036215f8ff\ztbfile.pdf" + file_path=r"C:\Users\Administrator\Desktop\fsdownload\5950ad84-30c8-4643-b6de-b13ef5be7a5c\ztbfile.pdf" file_type=2 - output_folder = r"C:\Users\Administrator\Desktop\fsdownload\db79e9e0-830e-442c-8cb6-1d036215f8ff\tmp" + output_folder = r"C:\Users\Administrator\Desktop\fsdownload\5950ad84-30c8-4643-b6de-b13ef5be7a5c\tmp" tech_deviation,tech_star_deviation,business_deviation,business_star_deviation,zigefuhe_deviation=get_tech_and_business_deviation(file_path,file_type,"123",output_folder) print(json.dumps(tech_deviation,ensure_ascii=False,indent=4)) print(json.dumps(tech_star_deviation,ensure_ascii=False,indent=4)) diff --git a/flask_app/货物标/截取pdf货物标版.py b/flask_app/货物标/截取pdf货物标版.py index 2cc60ea..3e437f5 100644 --- a/flask_app/货物标/截取pdf货物标版.py +++ b/flask_app/货物标/截取pdf货物标版.py @@ -816,12 +816,11 @@ def truncate_pdf_specific_goods(pdf_path, output_folder, selections,unique_id="1 if merged_path: # 合并成功,添加合并后的文件路径 truncate_files.append(merged_path) - logger.info(f"已生成合并文件: {merged_output_path}") + # logger.info(f"已生成合并文件: {merged_output_path}") else: # 合并失败,添加空字符串 truncate_files.append("") - logger.warning(f"合并失败,没有生成合并文件 for {pdf_path}") - + logger.warning(f"合并失败,没有生成merged_baseinfo for {pdf_path}") return truncate_files # TODO:交通智能系统和招标(1)(1)文件有问题 包头 绍兴 工程标中,判断是符合性审查之后,可以将它们设为同一章