def viewnetworkrecords() -> Response: frontend = ReflecBeatFrontend(g.data, g.config, g.cache) network_records = frontend.get_network_records() versions = {version: name for (game, version, name) in frontend.all_games()} return render_react( 'Global Reflec Beat Records', 'reflec/records.react.js', { 'records': network_records['records'], 'songs': frontend.get_all_songs(), 'players': network_records['players'], 'versions': versions, 'shownames': True, 'showpersonalsort': False, 'filterempty': False, }, { 'refresh': url_for('reflec_pages.listnetworkrecords'), 'player': url_for('reflec_pages.viewplayer', userid=-1), 'individual_score': url_for('reflec_pages.viewtopscores', musicid=-1), }, )
def listnetworkrecords() -> Dict[str, Any]: frontend = ReflecBeatFrontend(g.data, g.config, g.cache) return frontend.get_network_records()