diff options
Diffstat (limited to 'glucometer.py')
-rwxr-xr-x | glucometer.py | 5 |
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()) |