def home(): with tools.Contest() as contest: d = {'languages': list(sorted(list(contest['wrappers'].keys()))), 'questions': list(sorted(list(contest['questions'].keys()), key=lambda x: int(x))), 'intro': contest['intro'] } return tools.render('home.html', d)
def analytics(): d = {'available': config.analysis_available} return tools.render('analytics.html', d)