Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions glucometerutils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ def get_value_as(self, to_unit: Unit) -> float:

def as_csv(self, unit: Unit) -> str:
"""Returns the reading as a formatted comma-separated value string."""
return '"%s","%.2f","%s","%s","%s"' % (
return '"%s","BG","%.2f","%s","%s","%s","%s"' % (
self.timestamp,
self.get_value_as(unit),
unit.value,
self.meal.value,
self.measure_method.value,
self.comment,
Expand All @@ -102,7 +103,7 @@ def as_csv(self, unit: Unit) -> str:
"""Returns the reading as a formatted comma-separated value string."""
del unit # Unused for Ketone readings.

return '"%s","%.2f","","%s","%s"' % (
return '"%s","BK","%.2f","mmol/L","","%s","%s"' % (
self.timestamp,
self.value,
self.measure_method.value,
Expand Down