fixed season length for real this time, started saving champs
This commit is contained in:
parent
9404ffd8fc
commit
6c30ccb88a
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user