diff --git a/leagues.py b/leagues.py index 33e9de2..6c59a42 100644 --- a/leagues.py +++ b/leagues.py @@ -19,13 +19,13 @@ class division(object): self.teams = {} #key: team object, value: {wins; rd (run diff)} class tournament(object): - def __init__(self, name, team_dic, series_length = 5, maxinnings = 9): + def __init__(self, name, team_dic, series_length = 5, max_innings = 9): self.name = name self.teams = team_dic #same format as division, wins/losses will be used for seeding later self.bracket = None self.results = None self.series_length = series_length - self.game_length = maxinnings + self.game_length = max_innings self.active = False def build_bracket(self, random_sort = False, by_wins = False): diff --git a/the_prestige.py b/the_prestige.py index 85c99e2..3fa722f 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -448,7 +448,7 @@ class StartTournamentCommand(Command): games.get_team("Pigeon’s Reckoning") : {"wins": 0, "rd": 0}, games.get_team("Kernow Technologists") : {"wins": 0, "rd": 0} } - tourney = leagues.tournament("Test Tourney", test_bracket) + tourney = leagues.tournament("Test Tourney", test_bracket, max_innings=3) tourney.build_bracket(random_sort=True) tourney_task = asyncio.create_task(start_tournament_round(msg.channel, tourney))