def bracket_show_sets(self, bracket_id, filter_response=True, filter_completed=False, filter_current=True, filter_future=True): """Shows a list of sets given a bracket id""" return brackets.sets(bracket_id, filter_response, filter_completed, filter_current, filter_future)
def show_sets(tournament_name, event, tournament_params=[]): """Returns all sets from a tournament""" tournament = show_with_brackets(tournament_name, event, tournament_params) results = [] for bracket_id in tournament['bracket_ids']: bracket_sets = brackets.sets(bracket_id) for _set in bracket_sets: if len(_set) > 0: results.append(_set) return results
def show_sets(tournament_name, event, tournament_params=[], get_completed_sets=True, get_ready_sets=False, get_future_sets=False): """Returns all sets from a tournament""" tournament = show_with_brackets(tournament_name, event, tournament_params) results = [] for bracket_id in tournament['bracket_ids']: bracket_sets = brackets.sets(bracket_id, get_completed_sets=get_completed_sets, get_ready_sets=get_ready_sets, get_future_sets=get_future_sets) for _set in bracket_sets: if len(_set) > 0: results.append(_set) return results
def show_sets(tournament_name, event, tournament_params=[], filter_completed=False, filter_current=True, filter_future=True): """Returns all sets from a tournament""" tournament = show_with_brackets(tournament_name, event, tournament_params) results = [] for bracket_id in tournament['bracket_ids']: bracket_sets = brackets.sets(bracket_id, True, filter_completed, filter_current, filter_future) for _set in bracket_sets: if len(_set) > 0: results.append(_set) return results
def bracket_show_sets(self, bracket_id, filter_response=True): """Shows a list of sets given a bracket id""" return brackets.sets(bracket_id, filter_response)