예제 #1
0
 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)
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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
예제 #5
0
 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)