mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 06:29:26 +08:00
Update tool_task.py
This commit is contained in:
@@ -122,7 +122,7 @@ def removeBgTask():
|
||||
"id=?", (cfg["task_id"],)).find()
|
||||
if res and res["id"] == cfg["task_id"]:
|
||||
data = MwCrontab.instance().delete(cfg["task_id"])
|
||||
if data[0]:
|
||||
if data['status']:
|
||||
cfg["task_id"] = -1
|
||||
mw.writeFile(getTaskConf(), '[]')
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user