Update tool_task.py

This commit is contained in:
dami 2025-08-22 17:24:27 +08:00
parent 88e605fc5a
commit a0487671d2
1 changed files with 2 additions and 6 deletions

View File

@ -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()