Beispiel #1
0
def dashboard():
    user = g.current_user
    league = g.current_league
    return dict(
        report_form=ReportForm(get_active_users()),
        current_ranking=get_user_standing(league['id'], user['id']),
        ranking=get_league_ranking(league['id']),
        history=search_matches(league['id'], user_id=user['id']))
Beispiel #2
0
def standings():
    return dict(ranking=get_league_ranking(g.current_league['id']))