From 6d0f05db5d3f6aa98341d03be68746e6570f7181 Mon Sep 17 00:00:00 2001 From: kkosos Date: Tue, 12 Nov 2024 13:50:37 +0800 Subject: [PATCH] This variable is unused and could be removed Clean up the legacy code. force_enable was a function and it was removed --- module/config/config.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/module/config/config.py b/module/config/config.py index f57aa0be02..01c2f4b488 100644 --- a/module/config/config.py +++ b/module/config/config.py @@ -297,15 +297,7 @@ def limit_next_run(tasks, limit): for task in ["Commission", "Research", "Reward"]: if not self.is_task_enabled(task): self.modified[f"{task}.Scheduler.Enable"] = True - force_enable = list - - force_enable( - [ - "Commission", - "Research", - "Reward", - ] - ) + limit_next_run(["Commission", "Reward"], limit=now + timedelta(hours=12, seconds=-1)) limit_next_run(["Research"], limit=now + timedelta(hours=24, seconds=-1)) limit_next_run(["OpsiExplore", "OpsiCrossMonth", "OpsiVoucher", "OpsiMonthBoss", "OpsiShop"],