修复手动执行订阅搜索服务无效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:
return schemas.Response(success=False, message="命令不能为空!")
Scheduler().start(jobid)
if jobid == "subscribe_search":
Scheduler().start(jobid, state = 'R')
else:
Scheduler().start(jobid)
return schemas.Response(success=True)