From 2637872ed32be6223eb464a76370a4e38850b5cd Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 29 Sep 2020 14:42:33 -0500 Subject: Fixed issue where negative additive effect values weren't being displayed in the "view collection" page * wqflask/wqflask/templates/collections/view.html - Apparently the correct way to check if a value can be cast to a float in Jinja2 is to say "value != 0"; it previous said "value > 0" which exlcuded all negative values --- wqflask/wqflask/templates/collections/view.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index dce814dd..13d45d62 100644 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -144,7 +144,7 @@ N/A {% endif %} {{ this_trait.LRS_location_repr }} - {% if this_trait.additive|float > 0 %} + {% if this_trait.additive|float != 0 %} {{ '%0.3f' % this_trait.additive|float }} {% else %} N/A -- cgit v1.2.3