From b8067b3a5e4c6891d0a0a99e23e03ac12d68d649 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 23 Nov 2021 17:32:41 +0300 Subject: db: traits: Remove "\n\n" when generating csv file In excel, "\n\n" is replaced with ",,,," during upload. --- gn3/db/traits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3') 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, -- cgit v1.2.3