summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-12-11 20:00:24 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-12-11 20:00:24 +0100
commit27ba5833587cb1d9c554e6eebe897261337f7c32 (patch)
tree3540f3f7897673f5df4b6181eb517684c5b0c2f6
parentBetter error handling. (diff)
downloadglucometerutils-27ba5833587cb1d9c554e6eebe897261337f7c32.tar
glucometerutils-27ba5833587cb1d9c554e6eebe897261337f7c32.tar.gz
glucometerutils-27ba5833587cb1d9c554e6eebe897261337f7c32.tar.bz2
glucometerutils-27ba5833587cb1d9c554e6eebe897261337f7c32.tar.lz
glucometerutils-27ba5833587cb1d9c554e6eebe897261337f7c32.tar.xz
glucometerutils-27ba5833587cb1d9c554e6eebe897261337f7c32.tar.zst
glucometerutils-27ba5833587cb1d9c554e6eebe897261337f7c32.zip
-rw-r--r--glucometerutils/drivers/otultra2.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/glucometerutils/drivers/otultra2.py b/glucometerutils/drivers/otultra2.py
index 500ce17..4539cc2 100644
--- a/glucometerutils/drivers/otultra2.py
+++ b/glucometerutils/drivers/otultra2.py
@@ -282,11 +282,7 @@ class Device(object):
date = self._parse_datetime(line_data['datetime'])
meal_str = self._MEAL_CODES[line_data['meal']]
comment_str = self._COMMENT_CODES[line_data['comment']]
-
- if meal_str and comment_str:
- comment = '%s & %s' % (meal_str, comment_str)
- else:
- comment = meal_str or comment_str
+ comment = '"%s","%s"' % (meal_str, comment_str)
# OneTouch2 always returns the data in mg/dL even if the
# glucometer is set to mmol/L. We need to convert it to the