aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-08-23 19:03:10 +0000
committerzsloan2021-08-23 19:03:10 +0000
commit0bbe9072566397942a6db034cb11203bcb43b78f (patch)
tree00b5b8d70591cf429d9d3a53ce49f2063374edd5
parentcbebc4ae80f77575f89df3540952f412378326dc (diff)
downloadgenenetwork2-0bbe9072566397942a6db034cb11203bcb43b78f.tar.gz
Fix the way categorical_var_list is set to account for case attribute Ids being keys now instead of names
-rw-r--r--wqflask/wqflask/show_trait/show_trait.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py
index 96f6901a..36e69fa3 100644
--- a/wqflask/wqflask/show_trait/show_trait.py
+++ b/wqflask/wqflask/show_trait/show_trait.py
@@ -701,7 +701,7 @@ def get_categorical_variables(this_trait, sample_list) -> list:
if len(sample_list.attributes) > 0:
for attribute in sample_list.attributes:
if len(sample_list.attributes[attribute].distinct_values) < 10:
- categorical_var_list.append(sample_list.attributes[attribute].name)
+ categorical_var_list.append(str(sample_list.attributes[attribute].id))
return categorical_var_list