diff options
| author | Frederick Muriuki Muriithi | 2025-12-16 12:24:36 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-12-16 13:28:51 -0600 |
| commit | b8cba2b0585604935d26bec6916aaadd114a2fcf (patch) | |
| tree | b832ce7ded7350a9e9c9b299dff58f8b46c0bb64 /uploader/phenotypes/views.py | |
| parent | 57b7970d14bebe3458da66558a58eaf6d6b10266 (diff) | |
| download | gn-uploader-b8cba2b0585604935d26bec6916aaadd114a2fcf.tar.gz | |
Implement streamlined UI for phenotypes upload page.
Diffstat (limited to 'uploader/phenotypes/views.py')
| -rw-r--r-- | uploader/phenotypes/views.py | 6 |
1 files changed, 4 insertions, 2 deletions
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, |
