mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 15:45:26 +08:00
Opt: Disable Scheduler.Enable option in task Commission, Tactical, Research and Reward (#1073)
- Add option type: hide and disable - Increase Scheduler.FailureInterval of task Tactical - Fix research can't be delayed to tomorrow if no projects satisfy current filter
This commit is contained in:
@@ -239,7 +239,7 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig):
|
||||
People migrating from manual game play to bot have a hard time giving up old usage habitat,
|
||||
so, teach them how to play games and how to use Alas.
|
||||
"""
|
||||
now = datetime.now()
|
||||
now = datetime.now().replace(microsecond=0)
|
||||
limited = set()
|
||||
|
||||
def limit_next_run(tasks, limit):
|
||||
@@ -260,9 +260,10 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig):
|
||||
self.modified[f'{task}.Scheduler.Enable'] = True
|
||||
|
||||
force_enable(['Commission', 'Tactical', 'Research', 'Reward'])
|
||||
limit_next_run(['Commission', 'Tactical', 'Research', 'Reward'], limit=now + timedelta(hours=12, minutes=10))
|
||||
limit_next_run(['OpsiExplore'], limit=now + timedelta(days=31, minutes=10))
|
||||
limit_next_run(self.args.keys(), limit=now + timedelta(hours=24, minutes=10))
|
||||
limit_next_run(['Commission', 'Tactical', 'Reward'], limit=now + timedelta(hours=12, minutes=-1))
|
||||
limit_next_run(['Research'], limit=now + timedelta(hours=24, minutes=-1))
|
||||
limit_next_run(['OpsiExplore'], limit=now + timedelta(days=31, minutes=-1))
|
||||
limit_next_run(self.args.keys(), limit=now + timedelta(hours=24, minutes=-1))
|
||||
|
||||
def override(self, **kwargs):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user