diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2018-10-05 21:46:13 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2018-10-05 21:46:13 +0200 |
commit | f1a3e138fbbdd8e5b557b73e9559c11c78e7ff01 (patch) | |
tree | 3fd280ff7f3da3bd3aaea431739390a889d5a6db /kpov_judge/web | |
parent | 360788d3894f01dbbce227a23070d5241a89733f (diff) |
Web: reorder functions
Diffstat (limited to 'kpov_judge/web')
-rwxr-xr-x | kpov_judge/web/kpov_judge/kpov_judge.py | 10 |
1 files changed, 5 insertions, 5 deletions
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/<class_id>/<task_id>/<lang>/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/<class_id>/<task_id>/<lang>/setup.<ending>', 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/<class_id>/<task_id>/<lang>/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: |