From d166930b0a114324f9f6b716619592604d17c746 Mon Sep 17 00:00:00 2001 From: songzhou Date: Fri, 29 Sep 2023 21:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E5=8A=A8=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E8=AE=A2=E9=98=85=E6=90=9C=E7=B4=A2=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=97=A0=E6=95=88bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/endpoints/system.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/api/endpoints/system.py b/app/api/endpoints/system.py index 15826531..6cd2d9ed 100644 --- a/app/api/endpoints/system.py +++ b/app/api/endpoints/system.py @@ -222,5 +222,8 @@ def execute_command(jobid: str, """ if not jobid: return schemas.Response(success=False, message="命令不能为空!") - Scheduler().start(jobid) - return schemas.Response(success=True) + if jobid == "subscribe_search": + Scheduler().start(jobid, state = 'R') + else: + Scheduler().start(jobid) + return schemas.Response(success=True) \ No newline at end of file