about summary refs log tree commit diff
path: root/uploader/base_routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/base_routes.py')
-rw-r--r--uploader/base_routes.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/uploader/base_routes.py b/uploader/base_routes.py
index cc2a270..e9f1165 100644
--- a/uploader/base_routes.py
+++ b/uploader/base_routes.py
@@ -36,16 +36,11 @@ def favicon():
 def index():
     """Load the landing page"""
     streamlined_ui = request.args.get("streamlined_ui")
-    if not bool(streamlined_ui):# TODO: Remove this section
-        return render_template(
-            "index.html" if user_logged_in() else "login.html",
-            gn2server_intro=urljoin(app.config["GN2_SERVER_URL"], "/intro"))
-
     with database_connection(app.config["SQL_URI"]) as conn:
         print("We found a species ID. Processing...")
         if not bool(request.args.get("species_id")):
             return render_template(
-                sui_template("index.html"),
+                sui_template("index.html" if user_logged_in() else "login.html"),
                 gn2server_intro=urljoin(app.config["GN2_SERVER_URL"], "/intro"),
                 species=all_species(conn),
                 streamlined_ui=streamlined_ui)