mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 20:58:19 +08:00
Opt: Add config_override() teaching people how to use a bot
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
from datetime import datetime
|
||||
|
||||
import numpy as np
|
||||
|
||||
from module.config.utils import (deep_get, get_os_next_reset,
|
||||
get_os_reset_remain)
|
||||
get_os_reset_remain,
|
||||
DEFAULT_TIME)
|
||||
from module.exception import RequestHumanTakeover, ScriptError
|
||||
from module.logger import logger
|
||||
from module.map.map_grids import SelectedGrids
|
||||
@@ -183,7 +182,7 @@ class OperationSiren(OSGlobe):
|
||||
next_run = self.config.Scheduler_NextRun
|
||||
for task in ['OpsiObscure', 'OpsiAbyssal', 'OpsiStronghold', 'OpsiMeowfficerFarming']:
|
||||
keys = f'{task}.Scheduler.NextRun'
|
||||
current = deep_get(self.config.data, keys=keys, default=datetime(2020, 1, 1, 0, 0))
|
||||
current = deep_get(self.config.data, keys=keys, default=DEFAULT_TIME)
|
||||
if current < next_run:
|
||||
logger.info(f'Delay task `{task}` to {next_run}')
|
||||
self.config.modified[keys] = next_run
|
||||
|
||||
Reference in New Issue
Block a user