summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app.py3
-rw-r--r--templates/layout.html3
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 @@
<div id="sub-header">
{% if study %}
<p>
- {% 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')) %}
<a href="{{url_for('upload', study=study, module=module)}}">neue Klausur hochladen</a>
{% endif %}