aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-08-18 00:13:55 +0000
committerzsloan2021-08-19 18:38:54 +0000
commitab3b838b99b58693f3f187093e78f492e7cf392b (patch)
treef7f2f8ba4972040261a60f4ab8d096f87e002774
parent71e6c7483c8675e96376295927133c370478bbba (diff)
downloadgenenetwork2-ab3b838b99b58693f3f187093e78f492e7cf392b.tar.gz
Exclude attributes with only one distinct value as well
-rw-r--r--wqflask/wqflask/templates/show_trait_transform_and_filter.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/show_trait_transform_and_filter.html b/wqflask/wqflask/templates/show_trait_transform_and_filter.html
index 064fd3e5..8d21b0b0 100644
--- a/wqflask/wqflask/templates/show_trait_transform_and_filter.html
+++ b/wqflask/wqflask/templates/show_trait_transform_and_filter.html
@@ -25,7 +25,7 @@
<label for="exclude_column">Block samples by group:</label>
<select id="exclude_column" size=1>
{% for attribute in sample_groups[0].attributes %}
- {% if sample_groups[0].attributes[attribute].distinct_values|length <= 10 %}
+ {% if sample_groups[0].attributes[attribute].distinct_values|length <= 10 and sample_groups[0].attributes[attribute].distinct_values|length > 1 %}
<option value="{{ loop.index }}">
{{ sample_groups[0].attributes[attribute].name }}
</option>