aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/trait.py2
-rw-r--r--wqflask/base/webqtlCaseData.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index c8c503e2..295502b3 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -131,7 +131,7 @@ class GeneralTrait(object):
if self.mean == "":
mean = "N/A"
else:
- mean = "%.3f" % round(float(self.additive), 2)
+ mean = "%.3f" % round(float(self.mean), 2)
if self.additive == "":
additive = "N/A"
else:
diff --git a/wqflask/base/webqtlCaseData.py b/wqflask/base/webqtlCaseData.py
index 2f88f778..627b2f6c 100644
--- a/wqflask/base/webqtlCaseData.py
+++ b/wqflask/base/webqtlCaseData.py
@@ -66,7 +66,7 @@ class webqtlCaseData(object):
@property
def display_value(self):
- if self.value:
+ if self.value != None:
return "%2.3f" % self.value
else:
return "x"