From c74919496f4fd3c3500ce17cfec7da36d7fc0106 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Sun, 26 May 2024 00:38:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20#17=20=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/run.py b/app/run.py index 59a3903..26f9de8 100644 --- a/app/run.py +++ b/app/run.py @@ -168,7 +168,9 @@ def run_script_now(): return "未登录" task_index = request.args.get("task_index", "") command = [PYTHON_PATH, "-u", SCRIPT_PATH, CONFIG_PATH, task_index] - logging.info(f">>> 手动运行任务{task_index+1}") + logging.info( + f">>> 手动运行任务{int(task_index)+1 if task_index.isdigit() else 'all'}" + ) def generate_output(): process = subprocess.Popen(