aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorBonfaceKilz2021-11-23 17:32:41 +0300
committerBonfaceKilz2021-11-23 17:32:41 +0300
commita6d61f58dc07ba307698c90befab28bcaf691966 (patch)
tree3c78c46a4202f0274cc449e254dc084cc82dfcfc /gn3/db
parent92d5766f5514181cd6aa82fc0d0f225666e892cb (diff)
downloadgenenetwork3-a6d61f58dc07ba307698c90befab28bcaf691966.tar.gz
db: traits: Remove "\n\n" when generating csv file
In excel, "\n\n" is replaced with ",,,," during upload.
Diffstat (limited to 'gn3/db')
-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 1c6aaa7..56258e2 100644
--- a/gn3/db/traits.py
+++ b/gn3/db/traits.py
@@ -103,7 +103,7 @@ def get_trait_csv_sample_data(conn: Any,
",".join([str(val) if val else "x"
for val in (strain_id, strain_name,
value, error, count)]))
- return f"# Publish Data Id: {publishdata_id}\n\n" + "\n".join(csv_data)
+ return f"# Publish Data Id: {publishdata_id}\n" + "\n".join(csv_data)
def update_sample_data(conn: Any,