diff --git a/routing.py b/routing.py index 1190686..2c3f329 100644 --- a/routing.py +++ b/routing.py @@ -150,6 +150,8 @@ def getKurs(): if not current_user.kurs: kurs = fetchDUALIS.getKurs(d.token, cookie) if kurs != 0: + if not fetchRAPLA.getIcal(kurs): + return render_template('kurs.html', detected=(kurs, e), s="s", theorie="hidden", praxis="hidden", file=False) current_user.kurs = kurs db.session.commit() else: @@ -161,7 +163,7 @@ def getKurs(): else: e = True kurs = "" - return render_template('kurs.html', detected=(kurs, e), s="s", theorie="hidden", praxis="hidden") + return render_template('kurs.html', detected=(kurs, e), s="s", theorie="hidden", praxis="hidden", file=True) @app.route("/set-up/semester") diff --git a/templates/kurs.html b/templates/kurs.html index 8cfe953..b5a7b7d 100644 --- a/templates/kurs.html +++ b/templates/kurs.html @@ -1,16 +1,20 @@ {% extends "index.html" %} {% block content %} {% if not detected[1] %} -