diff options
-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: |