aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-04-09 17:43:30 +0000
committerzsloan2021-04-09 17:43:30 +0000
commit9d7da4653c8b0241af712043bb375e3f2bc52a3f (patch)
tree12af4ac01155288985bb536fbc5e9731da5ca0af /wqflask
parente7b589f05e1c13612ea2f7245d66cc3f054fa14b (diff)
downloadgenenetwork2-9d7da4653c8b0241af712043bb375e3f2bc52a3f.tar.gz
Store categorical_attr_exists as a string instead of boolean since apparently the boolean doesn't get passed to the template properly
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/show_trait/show_trait.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py
index d3267190..6892f02b 100644
--- a/wqflask/wqflask/show_trait/show_trait.py
+++ b/wqflask/wqflask/show_trait/show_trait.py
@@ -204,10 +204,10 @@ class ShowTrait(object):
self.negative_vals_exist = "true"
#ZS: Check whether any attributes have few enough distinct values to show the "Block samples by group" option
- self.categorical_attr_exists = False
+ self.categorical_attr_exists = "false"
for attribute in self.sample_groups[0].attributes:
if len(self.sample_groups[0].attributes[attribute].distinct_values) <= 10:
- self.categorical_attr_exists = True
+ self.categorical_attr_exists = "true"
break
sample_column_width = max_samplename_width * 8