Ejemplo n.º 1
0
def add_game(session_id):
    """
    Render the session template on the /session route
    """
    session = Session.from_id(session_id)
    return render_template('add_player.html',
                           stylesheet='session',
                           session=session)
Ejemplo n.º 2
0
def session(session_id):
    """
    Render the session template on the /session route
    """
    session = Session.from_id(session_id)
    return render_template(
        'session.html',
        stylesheet='session',
        session=session,
        games=session.get_games(),
        players=session.get_players(),
        users_data=current_user.users_search_with_pagination("",
                                                             False,
                                                             False,
                                                             per_page=15))