From 7953969dff08042a2bd546382a9148c2da7dea8a Mon Sep 17 00:00:00 2001 From: Pierrick C Date: Mon, 10 Sep 2018 07:53:21 +0200 Subject: [PATCH] Debug csv line generation --- circuitpython/code/cameteo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circuitpython/code/cameteo.py b/circuitpython/code/cameteo.py index 8688831..1da0128 100644 --- a/circuitpython/code/cameteo.py +++ b/circuitpython/code/cameteo.py @@ -124,9 +124,9 @@ class Data: def csv(self, header=False): """Serialized data values (or keys if header=True) as CSV line""" if header: - return ";".join(self.data.keys()) + return ";".join([str(x) for x in self.data.keys()]) - return ";".join(self.data.values()) + return ";".join([str(x) for x in self.data.values()]) def write_on_flash(self, current, verbose=True): """Save the current data as csv file on SPI flash"""