From 2e2e838a16e23e0f71014c9845d0c2d6f7308bbb Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Wed, 15 Aug 2012 16:47:36 +0200 Subject: added missing module var --- app.py | 3 ++- templates/layout.html | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 3fab478..9143fe1 100644 --- a/app.py +++ b/app.py @@ -99,7 +99,8 @@ def upload(study, module = None): try: form.module.data = [k for (k,v) in form.module.choices if v == module][0] except: pass - return render_template('upload.html', study = study, form = form) + return render_template('upload.html', + study = study, form = form, module=module) diff --git a/templates/layout.html b/templates/layout.html index bad67a2..0089f04 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -26,8 +26,7 @@
{% if study %}

- {% if not request.base_url.endswith(url_for('upload', study=study - , module = module))%} + {% if not request.base_url.endswith(url_for('upload', study=study, module = module))%} {% if not request.base_url.endswith(url_for('forbidden')) %} neue Klausur hochladen {% endif %} -- cgit v1.2.3-1-g7c22