From f5066b2dd2043002d2415fd44e70bf01e506d471 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 9 Jan 2024 17:34:25 +0000 Subject: Fix the way accession_id is set + update info link on correlation page --- gn2/base/data_set/dataset.py | 2 +- gn2/wqflask/templates/correlation_page.html | 12 ++++++------ gn2/wqflask/templates/search_result_page.html | 2 +- gn2/wqflask/templates/show_trait_details.html | 10 +--------- 4 files changed, 9 insertions(+), 17 deletions(-) diff --git a/gn2/base/data_set/dataset.py b/gn2/base/data_set/dataset.py index 1b1cf9ac..3a62fbde 100644 --- a/gn2/base/data_set/dataset.py +++ b/gn2/base/data_set/dataset.py @@ -44,7 +44,7 @@ class DataSet: self.retrieve_other_names() # sets self.group and self.group_id and gets genotype self.group = DatasetGroup(self) - self.accession_id = self.get_accession_id().value + self.accession_id = self.get_accession_id() if get_samplelist == True: self.group.get_samplelist(redis_conn) self.species = species.TheSpecies(dataset=self) diff --git a/gn2/wqflask/templates/correlation_page.html b/gn2/wqflask/templates/correlation_page.html index d3ee32f3..6baeff35 100644 --- a/gn2/wqflask/templates/correlation_page.html +++ b/gn2/wqflask/templates/correlation_page.html @@ -17,12 +17,12 @@
Values of record {{ this_trait.name }} in the {{ this_dataset.fullname }} - dataset were compared to all records in the {{ target_dataset.fullname }} - dataset. The top {{ return_results }} correlations ranked by the {{ formatted_corr_type }} are displayed. - You can resort this list by clicking the headers. Select the Record ID to open the trait data - and analysis page. -
+Values of record {{ this_trait.name }} in the {{ this_dataset.fullname }} + dataset were compared to all records in the {{ target_dataset.fullname }} + dataset. The top {{ return_results }} correlations ranked by the {{ formatted_corr_type }} are displayed. + You can resort this list by clicking the headers. Select the Record ID to open the trait data + and analysis page. +