From 4f799aa5998e4c721eb7fdc18b29ad7fa6764f40 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sat, 11 Sep 2021 21:20:36 +0200 Subject: [PATCH] Fixed index route --- advlabdb/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advlabdb/routes.py b/advlabdb/routes.py index 80f1b07..43f5447 100644 --- a/advlabdb/routes.py +++ b/advlabdb/routes.py @@ -17,7 +17,7 @@ def index(): elif current_user.has_role("assistant"): return redirect(url_for("index") + "assistant") else: - return render_template("index.html") + return redirect(url_for("security.login")) @app.route("/set_semester")