From 452fd810ac7cdc9862ab771a99cb08486a739dab Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 22 Aug 2025 16:35:15 +0800 Subject: [PATCH] Update tool_task.py --- plugins/op_waf/tool_task.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/op_waf/tool_task.py b/plugins/op_waf/tool_task.py index 70d2fd107..a0fef7a6d 100644 --- a/plugins/op_waf/tool_task.py +++ b/plugins/op_waf/tool_task.py @@ -65,7 +65,7 @@ def createBgTask(): def createBgTaskByName(name, args): cfg = getConfigTpl() - _name = "[勿删]OP防火墙后台任务[" + name + "]" + _name = "[勿删]OP防火墙后台任务" res = mw.M("crontab").field("id, name").where("name=?", (_name,)).find() if res: return True @@ -76,8 +76,6 @@ def createBgTaskByName(name, args): if res and res["id"] == cfg["task_id"]: print("计划任务已经存在!") return True - import crontab_api - cron_api = crontab_api.crontab_api() period = args['period'] _hour = ''