summaryrefslogtreecommitdiffstats
path: root/glucometer.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-12-11 20:27:00 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-12-11 20:27:00 +0100
commit11766e45449a999a15c310ab048bc98db3abf8c7 (patch)
treeab381d64634c219fb26fc2a28936a496bc11e7fc /glucometer.py
parentotultra2: expose the meal and comments as separate field in the CSV. (diff)
downloadglucometerutils-11766e45449a999a15c310ab048bc98db3abf8c7.tar
glucometerutils-11766e45449a999a15c310ab048bc98db3abf8c7.tar.gz
glucometerutils-11766e45449a999a15c310ab048bc98db3abf8c7.tar.bz2
glucometerutils-11766e45449a999a15c310ab048bc98db3abf8c7.tar.lz
glucometerutils-11766e45449a999a15c310ab048bc98db3abf8c7.tar.xz
glucometerutils-11766e45449a999a15c310ab048bc98db3abf8c7.tar.zst
glucometerutils-11766e45449a999a15c310ab048bc98db3abf8c7.zip
Diffstat (limited to '')
-rwxr-xr-xglucometer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/glucometer.py b/glucometer.py
index 18b7ad3..33fda46 100755
--- a/glucometer.py
+++ b/glucometer.py
@@ -55,8 +55,9 @@ def main():
print(device.get_information_string())
elif args.action == 'dump':
for reading in device.get_readings():
- print('%s,%.2f,%s' % (reading.timestamp, reading.get_value_as(args.unit),
- reading.comment))
+ print('"%s","%.2f","%s","%s"' % (
+ reading.timestamp, reading.get_value_as(args.unit),
+ reading.meal, reading.comment))
elif args.action == 'datetime':
if args.set == 'now':
print(device.set_datetime())