11.26 优化日志管理
This commit is contained in:
parent
ceaaf3c1c9
commit
45df7ea714
@ -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
|
return tech_deviation,tech_star_deviation,business_deviation,business_star_deviation,zigefuhe_deviation
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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
|
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)
|
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_deviation,ensure_ascii=False,indent=4))
|
||||||
print(json.dumps(tech_star_deviation,ensure_ascii=False,indent=4))
|
print(json.dumps(tech_star_deviation,ensure_ascii=False,indent=4))
|
||||||
|
@ -816,12 +816,11 @@ def truncate_pdf_specific_goods(pdf_path, output_folder, selections,unique_id="1
|
|||||||
if merged_path:
|
if merged_path:
|
||||||
# 合并成功,添加合并后的文件路径
|
# 合并成功,添加合并后的文件路径
|
||||||
truncate_files.append(merged_path)
|
truncate_files.append(merged_path)
|
||||||
logger.info(f"已生成合并文件: {merged_output_path}")
|
# logger.info(f"已生成合并文件: {merged_output_path}")
|
||||||
else:
|
else:
|
||||||
# 合并失败,添加空字符串
|
# 合并失败,添加空字符串
|
||||||
truncate_files.append("")
|
truncate_files.append("")
|
||||||
logger.warning(f"合并失败,没有生成合并文件 for {pdf_path}")
|
logger.warning(f"合并失败,没有生成merged_baseinfo for {pdf_path}")
|
||||||
|
|
||||||
return truncate_files
|
return truncate_files
|
||||||
|
|
||||||
# TODO:交通智能系统和招标(1)(1)文件有问题 包头 绍兴 工程标中,判断是符合性审查之后,可以将它们设为同一章
|
# TODO:交通智能系统和招标(1)(1)文件有问题 包头 绍兴 工程标中,判断是符合性审查之后,可以将它们设为同一章
|
||||||
|
Loading…
x
Reference in New Issue
Block a user