1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Fix: guild_interval reset before use

This commit is contained in:
LmeSzinc
2021-01-19 17:09:18 +08:00
parent a644a19acb
commit 9100113ce9

View File

@@ -35,6 +35,7 @@ class RewardGuild(GuildLobby, GuildLogistics, GuildOperations):
return False
if self.config.GUILD_POPUP_TRIGGERED:
logger.info('Guild popup triggered')
_ = self.guild_interval # Call guild_interval to avoid resetting before using
else:
now = datetime.now()
guild_record = datetime.strptime(self.config.config.get(*GUILD_RECORD), self.config.TIME_FORMAT)