summaryrefslogtreecommitdiff
path: root/kpov_judge/web
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-10-05 21:46:13 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-10-05 21:46:13 +0200
commitf1a3e138fbbdd8e5b557b73e9559c11c78e7ff01 (patch)
tree3fd280ff7f3da3bd3aaea431739390a889d5a6db /kpov_judge/web
parent360788d3894f01dbbce227a23070d5241a89733f (diff)
Web: reorder functions
Diffstat (limited to 'kpov_judge/web')
-rwxr-xr-xkpov_judge/web/kpov_judge/kpov_judge.py10
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: