aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-08-19 18:28:17 +0000
committerzsloan2021-08-19 18:38:54 +0000
commit642c98f13c9cc4c2cf258eb960206dac79410b00 (patch)
tree91a51115248bf168cc718b3d84e186c581299090
parenta3718c91123316f13d22c9c5b5f7f858cd96a2cd (diff)
downloadgenenetwork2-642c98f13c9cc4c2cf258eb960206dac79410b00.tar.gz
Fixed the way the drop-down for Filter by Value set values for the case attributes
-rw-r--r--wqflask/wqflask/templates/show_trait_transform_and_filter.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/show_trait_transform_and_filter.html b/wqflask/wqflask/templates/show_trait_transform_and_filter.html
index 8d21b0b0..5e6ed2cf 100644
--- a/wqflask/wqflask/templates/show_trait_transform_and_filter.html
+++ b/wqflask/wqflask/templates/show_trait_transform_and_filter.html
@@ -74,10 +74,12 @@
{% if js_data.se_exists %}
<option value="stderr">SE</option>
{% endif %}
- {% for attribute in numerical_var_list %}
+ {% for attribute in sample_groups[0].attributes %}
+ {% if sample_groups[0].attributes[attribute].name in numerical_var_list %}
<option value="{{ loop.index }}">
- {{ attribute }}
+ {{ sample_groups[0].attributes[attribute].name }}
</option>
+ {% endif %}
{% endfor %}
</select>
{% endif %}