summaryrefslogtreecommitdiffstats
path: root/glucometer.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometer.py')
-rwxr-xr-xglucometer.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/glucometer.py b/glucometer.py
index 8e19237..148daff 100755
--- a/glucometer.py
+++ b/glucometer.py
@@ -76,9 +76,7 @@ def main():
readings, key=lambda reading: getattr(reading, args.sort_by))
for reading in readings:
- print('"%s","%.2f","%s","%s"' % (
- reading.timestamp, reading.get_value_as(unit),
- reading.meal, reading.comment))
+ print(reading.as_csv(unit))
elif args.action == 'datetime':
if args.set == 'now':
print(device.set_datetime())