From 217f29fd20ac14621305f802a48d6b576dca8167 Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Wed, 19 Feb 2025 17:33:11 +0800 Subject: [PATCH] =?UTF-8?q?2.19=20=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=8B=9B=E6=A0=87=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_app/routes/test_preprocess.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flask_app/routes/test_preprocess.py b/flask_app/routes/test_preprocess.py index 40c3496..bcd2daa 100644 --- a/flask_app/routes/test_preprocess.py +++ b/flask_app/routes/test_preprocess.py @@ -4,7 +4,7 @@ import time from flask_app.ConnectionLimiter import require_execution_timeout from flask_app.general.format_change import download_file from flask_app.routes.utils import validate_and_setup_logger -from flask_app.routes.货物标解析main import preprocess_file_main +from flask_app.routes.货物标解析main import preprocess_file_main, preprocess_files test_process_bp = Blueprint('test_process', __name__) @test_process_bp.route('/test_process', methods=['POST']) @@ -27,8 +27,8 @@ def process_file(): # print(file_path) # 调用预处理函数 start_time = time.time() - result=preprocess_file_main(output_folder, file_path, file_type,logger) - + # result=preprocess_file_main(output_folder, file_path, file_type,logger) + result = preprocess_files(output_folder, file_path, file_type, logger) # 处理结果 if not result: return jsonify({'error': 'File processing failed'})