修复手动执行订阅搜索服务无效bug

This commit is contained in:
songzhou 2023-09-29 21:57:41 +08:00
parent 5898bc7eb1
commit d166930b0a

View File

@ -222,5 +222,8 @@ def execute_command(jobid: str,
""" """
if not jobid: if not jobid:
return schemas.Response(success=False, message="命令不能为空!") return schemas.Response(success=False, message="命令不能为空!")
if jobid == "subscribe_search":
Scheduler().start(jobid, state = 'R')
else:
Scheduler().start(jobid) Scheduler().start(jobid)
return schemas.Response(success=True) return schemas.Response(success=True)