aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/traits.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/db/traits.py')
-rw-r--r--gn3/db/traits.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/traits.py b/gn3/db/traits.py
index cad53e7..fdbba21 100644
--- a/gn3/db/traits.py
+++ b/gn3/db/traits.py
@@ -88,7 +88,7 @@ def get_trait_csv_sample_data(conn: Any,
return str(num_str)
def __process_for_csv__(record):
return ",".join([
- __float_strip(record[key]) if record[key] else "x"
+ __float_strip(record[key]) if record[key] is not None else "x"
for key in ("sample_name", "value", "se_error", "nstrain")])
csv_data = ["Strain Name,Value,SE,Count"] + [
__process_for_csv__(record) for record in