예제 #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)
예제 #2
0
파일: server.py 프로젝트: efebozkir/ffai
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)
예제 #3
0
파일: server.py 프로젝트: sagarverma/ffai
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)