From f1a3e138fbbdd8e5b557b73e9559c11c78e7ff01 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 5 Oct 2018 21:46:13 +0200 Subject: Web: reorder functions --- kpov_judge/web/kpov_judge/kpov_judge.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kpov_judge') diff --git a/kpov_judge/web/kpov_judge/kpov_judge.py b/kpov_judge/web/kpov_judge/kpov_judge.py index b190567..64fa235 100755 --- a/kpov_judge/web/kpov_judge/kpov_judge.py +++ b/kpov_judge/web/kpov_judge/kpov_judge.py @@ -128,6 +128,11 @@ def results_json(class_id, task_id): return json.dumps(results_dict(class_id, task_id)) +@app.route('/tasks////results.html') +def results_html(class_id, task_id, lang): + return render_template('results.html', results=results_dict(class_id, task_id)) + + @app.route('/tasks////setup.', methods=['GET']) def setup_svg(class_id, task_id, lang, ending): db = g.db @@ -142,11 +147,6 @@ def setup_svg(class_id, task_id, lang, ending): mimetype=mimetype) -@app.route('/tasks////results.html') -def results_html(class_id, task_id, lang): - return render_template('results.html', results=results_dict(class_id, task_id)) - - def public_meta(db, class_id, task_id): shown = {} try: -- cgit v1.2.1