From 4ab9378f7578e7ac66816f8513748d0016ca5c66 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 21 Apr 2023 05:12:31 +0300 Subject: oauth2: BugFixes: Fix redirect. Add Dataset Name. --- wqflask/wqflask/oauth2/data.py | 2 +- wqflask/wqflask/templates/oauth2/view-resource.html | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/oauth2/data.py b/wqflask/wqflask/oauth2/data.py index a9d389dc..8b8f4f20 100644 --- a/wqflask/wqflask/oauth2/data.py +++ b/wqflask/wqflask/oauth2/data.py @@ -299,7 +299,7 @@ def link_phenotype_data(): if bool(form.get("species_name")): link_source_url = redirect(url_for( "oauth2.data.list_data_by_species_and_dataset", - species_name=form["species_name"], dataset_type="mrna")) + species_name=form["species_name"], dataset_type="phenotype")) def __link_error__(err): error = process_error(err) diff --git a/wqflask/wqflask/templates/oauth2/view-resource.html b/wqflask/wqflask/templates/oauth2/view-resource.html index 8a5b360c..43f3f5b9 100644 --- a/wqflask/wqflask/templates/oauth2/view-resource.html +++ b/wqflask/wqflask/templates/oauth2/view-resource.html @@ -158,6 +158,7 @@ Year {%endif%} Dataset Name + Dataset FullName Actions @@ -191,9 +192,10 @@ - {{data_item.dataset_fullname}} + {{data_item.dataset_name}} + {{data_item.dataset_fullname}}
-- cgit v1.2.3