diff options
-rw-r--r-- | app.py | 3 | ||||
-rw-r--r-- | templates/layout.html | 3 |
2 files changed, 3 insertions, 3 deletions
@@ -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 %} |