From b8cba2b0585604935d26bec6916aaadd114a2fcf Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 16 Dec 2025 12:24:36 -0600 Subject: Implement streamlined UI for phenotypes upload page. --- uploader/phenotypes/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'uploader/phenotypes') diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py index 5b6f965..c4fd7fd 100644 --- a/uploader/phenotypes/views.py +++ b/uploader/phenotypes/views.py @@ -423,9 +423,11 @@ def add_phenotypes(species: dict, population: dict, dataset: dict, **kwargs):# p with Redis.from_url(_redisuri, decode_responses=True) as rconn: if request.method == "GET": today = datetime.date.today() + _sui="sui-" if request.args.get("streamlined_ui") else "" return render_template( - ("phenotypes/add-phenotypes-with-rqtl2-bundle.html" - if use_bundle else "phenotypes/add-phenotypes-raw-files.html"), + (f"phenotypes/{_sui}add-phenotypes-with-rqtl2-bundle.html" + if use_bundle + else f"phenotypes/{_sui}add-phenotypes-raw-files.html"), species=species, population=population, dataset=dataset, -- cgit 1.4.1