From 6c30ccb88afcd4eeaf2148828ca0ed5f0b4b25bd Mon Sep 17 00:00:00 2001 From: Sakimori Date: Fri, 15 Jan 2021 05:44:59 -0500 Subject: [PATCH] fixed season length for real this time, started saving champs --- leagues.py | 4 ++-- the_prestige.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/leagues.py b/leagues.py index d30690c..307497e 100644 --- a/leagues.py +++ b/leagues.py @@ -235,8 +235,8 @@ class league_structure(object): return teams def season_length(self): - return self.constraints["division_games"]*(len(random.choice(random.choice(self.league))-1)) + self.constraints["inter_div_games"] + self.constraints["inter_league_games"] - + return int(list(self.schedule.keys())[-1]) * self.series_length + def standings_embed(self): this_embed = Embed(color=Color.purple(), title=self.name) standings = {} diff --git a/the_prestige.py b/the_prestige.py index 54286c2..50d64af 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -1915,6 +1915,7 @@ async def league_postseason(channel, league): await asyncio.sleep(wait_seconds) await start_tournament_round(channel, world_series) league.champions[str(league.season)] = world_series.winner.name + leagues.save_league(league)