mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-31 03:04:11 +08:00
Fix: Duplicate restart at server reset
This commit is contained in:
@@ -48,7 +48,7 @@ class OSCampaignRun(OSMapOperation):
|
|||||||
self.campaign.os_meowfficer_farming()
|
self.campaign.os_meowfficer_farming()
|
||||||
except ActionPointLimit:
|
except ActionPointLimit:
|
||||||
if get_os_reset_remain() > 0:
|
if get_os_reset_remain() > 0:
|
||||||
self.campaign.config.task_delay(server_update=True)
|
self.config.task_delay(server_update=True)
|
||||||
self.config.task_call('MetaReward', force_call=False)
|
self.config.task_call('MetaReward', force_call=False)
|
||||||
else:
|
else:
|
||||||
logger.info('Just less than 1 day to OpSi reset, delay 2.5 hours')
|
logger.info('Just less than 1 day to OpSi reset, delay 2.5 hours')
|
||||||
|
|||||||
@@ -260,10 +260,10 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig):
|
|||||||
self.modified[f'{task}.Scheduler.Enable'] = True
|
self.modified[f'{task}.Scheduler.Enable'] = True
|
||||||
|
|
||||||
force_enable(['Commission', 'Research', 'Reward'])
|
force_enable(['Commission', 'Research', 'Reward'])
|
||||||
limit_next_run(['Commission', 'Reward'], limit=now + timedelta(hours=12, minutes=-1))
|
limit_next_run(['Commission', 'Reward'], limit=now + timedelta(hours=12, seconds=-1))
|
||||||
limit_next_run(['Research'], limit=now + timedelta(hours=24, minutes=-1))
|
limit_next_run(['Research'], limit=now + timedelta(hours=24, seconds=-1))
|
||||||
limit_next_run(['OpsiExplore'], limit=now + timedelta(days=31, minutes=-1))
|
limit_next_run(['OpsiExplore'], limit=now + timedelta(days=31, seconds=-1))
|
||||||
limit_next_run(self.args.keys(), limit=now + timedelta(hours=24, minutes=-1))
|
limit_next_run(self.args.keys(), limit=now + timedelta(hours=24, seconds=-1))
|
||||||
|
|
||||||
def override(self, **kwargs):
|
def override(self, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user