diff options
author | Frederick Muriuki Muriithi | 2023-04-21 05:12:31 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-04-21 05:12:31 +0300 |
commit | 4ab9378f7578e7ac66816f8513748d0016ca5c66 (patch) | |
tree | 9b78f40c1a843a2e1021ad7bdc24694286d5aaab /wqflask | |
parent | 85e9e69e265d12235acdf8992e1c4611961d65b0 (diff) | |
download | genenetwork2-4ab9378f7578e7ac66816f8513748d0016ca5c66.tar.gz |
oauth2: BugFixes: Fix redirect. Add Dataset Name.
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/oauth2/data.py | 2 | ||||
-rw-r--r-- | 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 @@ <th>Year</th> {%endif%} <th>Dataset Name</th> + <th>Dataset FullName</th> <th>Actions</th> </tr> </thead> @@ -191,9 +192,10 @@ <a href="https://gn1.genenetwork.org/webqtl/main.py?FormID=sharinginfo&GN_AccessionId={{data_item.accession_id}}&InfoPageName={{data_item.dataset_name}}" title="Dataset Group: {{data_item.dataset_name}}" target="_blank"> - {{data_item.dataset_fullname}} + {{data_item.dataset_name}} </a> </td> + <td>{{data_item.dataset_fullname}}</td> <td> <form method="POST" action="{{url_for('oauth2.resource.link_data_to_resource')}}"> |