about summary refs log tree commit diff
path: root/uploader/phenotypes/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-12-17 14:05:34 -0600
committerFrederick Muriuki Muriithi2025-12-17 14:07:35 -0600
commit01ffc39815b2f15c8e3a6523799764372b12122a (patch)
tree595cd4bc5c89969c153768fcff26aa65d7bfbd3b /uploader/phenotypes/views.py
parent6748236f00c85b86437b130350c7d710014218d5 (diff)
downloadgn-uploader-01ffc39815b2f15c8e3a6523799764372b12122a.tar.gz
Move phenotypes dataset UI to its own template.
Diffstat (limited to 'uploader/phenotypes/views.py')
-rw-r--r--uploader/phenotypes/views.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index ead43ab..9df7d81 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -185,12 +185,6 @@ def with_dataset(
 def view_dataset(# pylint: disable=[unused-argument]
         species: dict, population: dict, dataset: dict, **kwargs):
     """View a specific dataset"""
-    if bool(request.args.get("streamlined_ui")):
-        # Redirect back to the "View Population" page for the time being.
-        return redirect(url_for("species.populations.view_population",
-                                species_id=species["SpeciesId"],
-                                population_id=population["Id"]))
-
     with database_connection(app.config["SQL_URI"]) as conn:
         dataset = dataset_by_id(
             conn, species["SpeciesId"], population["Id"], dataset["Id"])
@@ -203,7 +197,7 @@ def view_dataset(# pylint: disable=[unused-argument]
 
         start_at = max(safe_int(request.args.get("start_at") or 0), 0)
         count = int(request.args.get("count") or 20)
-        return render_template("phenotypes/view-dataset.html",
+        return render_template(sui_template("phenotypes/view-dataset.html"),
                                species=species,
                                population=population,
                                dataset=dataset,