fixed season length for real this time, started saving champs

This commit is contained in:
Sakimori 2021-01-15 05:44:59 -05:00
parent 9404ffd8fc
commit 6c30ccb88a
2 changed files with 3 additions and 2 deletions

View File

@ -235,7 +235,7 @@ 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)

View File

@ -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)