aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Suhail <[email protected]>2019-06-21 20:06:41 +0100
committerGravatar Suhail <[email protected]>2019-06-21 20:06:41 +0100
commitfe17381802e4921080e38a42711bd97909c1a8b8 (patch)
tree643e68fb56fdf5618bdb142c297b9badb60c169e
parentChange base logic to allow for listed icon attributes (diff)
Fix new season not being reassigned and loaded
-rw-r--r--bot/seasons/season.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/seasons/season.py b/bot/seasons/season.py
index 2982bc47..49882247 100644
--- a/bot/seasons/season.py
+++ b/bot/seasons/season.py
@@ -399,6 +399,7 @@ class SeasonManager(commands.Cog):
# If the season has changed, load it.
new_season = get_season(date=datetime.datetime.utcnow())
if new_season.name != self.season.name:
+ self.season = new_season
await self.season.load()
else:
await self.season.change_server_icon()