Пример #1
0
def viewplayers() -> Response:
    frontend = PopnMusicFrontend(g.data, g.config, g.cache)
    return render_react(
        'All Pop\'n Music Players',
        'popn/allplayers.react.js',
        {'players': frontend.get_all_players()},
        {
            'refresh': url_for('popn_pages.listplayers'),
            'player': url_for('popn_pages.viewplayer', userid=-1),
        },
    )
Пример #2
0
def listplayers() -> Dict[str, Any]:
    frontend = PopnMusicFrontend(g.data, g.config, g.cache)
    return {
        'players': frontend.get_all_players(),
    }