Commit 5d5d72b1 authored by zhougaofeng's avatar zhougaofeng
Browse files

Update common_parse.py

parent 63971f9c
......@@ -45,7 +45,7 @@ def process_file(file_path, pdf_ocr, excel_ocr, output_dir):
res = excel_ocr.parse(file_path, output_dir)
end = time.time()
if res:
logger.info(f"文件处理成功,输出文件路径为: '{res}', 耗时为:{end-start}")
logger.info(f"文件处理成功,输出文件路径为: '{res}', 耗时为:{round(end-start,2)}")
else:
logger.warning(f"文件处理结果为空: '{file_path}'")
except requests.exceptions.RequestException as req_err:
......
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