mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-15 22:48:50 +08:00
Fix: Missing stringify time when no obscure coordinates
This commit is contained in:
@@ -278,6 +278,7 @@ class OperationSiren(Reward, OSMap):
|
|||||||
if not result:
|
if not result:
|
||||||
# No obscure coordinates, delay next run to tomorrow.
|
# No obscure coordinates, delay next run to tomorrow.
|
||||||
record = self.config.get_server_last_update(since=(0,)) + timedelta(days=1)
|
record = self.config.get_server_last_update(since=(0,)) + timedelta(days=1)
|
||||||
|
record = datetime.strftime(record, self.config.TIME_FORMAT)
|
||||||
self.config.config.set(*RECORD_OBSCURE_FINISH, record)
|
self.config.config.set(*RECORD_OBSCURE_FINISH, record)
|
||||||
self.config.save()
|
self.config.save()
|
||||||
return False
|
return False
|
||||||
@@ -287,7 +288,8 @@ class OperationSiren(Reward, OSMap):
|
|||||||
|
|
||||||
# Delay next run 30min or 60min.
|
# Delay next run 30min or 60min.
|
||||||
delta = 60 if self.config.OS_OBSCURE_SUBMARINE_CALL else 30
|
delta = 60 if self.config.OS_OBSCURE_SUBMARINE_CALL else 30
|
||||||
record = datetime.strftime(datetime.now() + timedelta(minutes=delta), self.config.TIME_FORMAT)
|
record = datetime.now() + timedelta(minutes=delta)
|
||||||
|
record = datetime.strftime(record, self.config.TIME_FORMAT)
|
||||||
self.config.config.set(*RECORD_OBSCURE_FINISH, record)
|
self.config.config.set(*RECORD_OBSCURE_FINISH, record)
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user