def show_players(tournament_name, event_name, tournament_params=[]): """Returns all players from a tournament""" tournament = show_with_brackets(tournament_name, tournament_params) results = [] for bracket_id in tournament['bracket_ids']: bracket_players = brackets.players(bracket_id) for player in bracket_players: results.append(player) return list({v['player_id']: v for v in results}.values())
def bracket_show_players(self, bracket_id, filter_response=True): """Shows a list of players given a bracket id""" return brackets.players(bracket_id, filter_response)