From cf8b4c21d81efaa01d347478dc126e6d9b53f7a9 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 16 Apr 2020 14:39:39 -0500 Subject: Fixed issue that caused submitted traits to not open properly when submitted to a group with case attributes + fixed a link to GN1 --- wqflask/wqflask/show_trait/show_trait.py | 4 +++- wqflask/wqflask/templates/submit_trait.html | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py index 64deb942..d35ba749 100644 --- a/wqflask/wqflask/show_trait/show_trait.py +++ b/wqflask/wqflask/show_trait/show_trait.py @@ -159,7 +159,9 @@ class ShowTrait(object): self.sample_group_types['samples_primary'] = self.dataset.group.name sample_lists = [group.sample_list for group in self.sample_groups] - categorical_var_list = get_categorical_variables(self.this_trait, self.sample_groups[0]) #ZS: Only using first samplelist, since I think mapping only uses those samples + categorical_var_list = [] + if not self.temp_trait: + categorical_var_list = get_categorical_variables(self.this_trait, self.sample_groups[0]) #ZS: Only using first samplelist, since I think mapping only uses those samples #ZS: Get list of chromosomes to select for mapping self.chr_list = [["All", -1]] diff --git a/wqflask/wqflask/templates/submit_trait.html b/wqflask/wqflask/templates/submit_trait.html index 0dd38fe5..68b06f55 100644 --- a/wqflask/wqflask/templates/submit_trait.html +++ b/wqflask/wqflask/templates/submit_trait.html @@ -32,7 +32,7 @@