async def team(request, season, name):
    try:
        ret = ChampionsLeagueModel.get_one_team(season, name)
    except Exception as e:
        ret = {"error ": str(e)}

    return json(ret)
async def groups(request, season):
    try:
        ret = ChampionsLeagueModel.get_groups(season)
    except Exception as e:
        ret = {"error ": str(e)}

    return json(ret)
async def about_final(request, season):
    try:
        ret = ChampionsLeagueModel.get_about_by_season(season)
    except Exception as e:
        ret = {"error ": str(e)}

    return json(ret)
async def final(request, season, team1, team2):
    try:
        ret = ChampionsLeagueModel.get_final(season, team1, team2)
    except Exception as e:
        ret = {"error ": str(e)}

    return json(ret)
async def semi_finals_team_vs_team(request, season, team1, team2):
    try:
        ret = ChampionsLeagueModel.get_playoffs(season, team1, team2,
                                                'semi-finals')
    except Exception as e:
        ret = {"error ": str(e)}

    return json(ret)
async def round_of_16_team_vs_team(request, season, team1, team2):
    try:
        ret = ChampionsLeagueModel.get_playoffs(season, team1, team2,
                                                'round-of-16')
    except Exception as e:
        ret = {"error ": str(e)}

    return json(ret)
async def about(request):
    return json(ChampionsLeagueModel.get_about())