Update tool_task.py
This commit is contained in:
parent
88e605fc5a
commit
a0487671d2
|
|
@ -111,12 +111,8 @@ logs_file=$plugin_path/${rname}.log
|
|||
|
||||
|
||||
def removeBgTask():
|
||||
if not mw.isAppleSystem():
|
||||
return False
|
||||
|
||||
cfg_list = getConfigData()
|
||||
for x in range(len(cfg_list)):
|
||||
cfg = cfg_list[x]
|
||||
cfg = getConfigData()
|
||||
for x in range(len(cfg)):
|
||||
if "task_id" in cfg.keys() and cfg["task_id"] > 0:
|
||||
res = mw.M("crontab").field("id, name").where(
|
||||
"id=?", (cfg["task_id"],)).find()
|
||||
|
|
|
|||
Loading…
Reference in New Issue