Esempio n. 1
0
def get_all_teams(ruleset_name='BB2016'):
    ruleset = load_rule_set(ruleset_name)
    teams = api.get_teams(ruleset)
    team_list = []
    for team in teams:
        team_list.append(team.to_json())
    return json.dumps(team_list)
Esempio n. 2
0
def get_all_teams():
    # TODO: Needs a ruleset
    teams = api.get_teams()
    team_list = []
    for team in teams:
        team_list.append(team.to_json())
    return json.dumps(team_list)
Esempio n. 3
0
def get_all_teams():
    teams = api.get_teams()
    team_list = []
    for team in teams:
        team_list.append(team.to_json())
    return json.dumps(team_list)