From 7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 15 Apr 2019 09:08:26 +0200 Subject: new line at end of .gitignore, rename arresult entry map --- .gitignore | 2 +- glucometerutils/drivers/fslibre.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 11c62a9..fda6313 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ __pycache__/ build .idea/ -*venv/ \ No newline at end of file +*venv/ diff --git a/glucometerutils/drivers/fslibre.py b/glucometerutils/drivers/fslibre.py index 7d3e496..5031a04 100644 --- a/glucometerutils/drivers/fslibre.py +++ b/glucometerutils/drivers/fslibre.py @@ -57,7 +57,7 @@ _ARRESULT_TYPE2_ENTRY_MAP = ( (28, 'errors'), ) -_ARRESULT_TYPE5_ENTRY_MAP = ( +_ARRESULT_TIME_ADJUSTMENT_ENTRY_MAP = ( (9, 'old_month'), (10, 'old_day'), (11, 'old_year'), @@ -124,7 +124,7 @@ def _parse_arresult(record): elif parsed_record['type'] == 2: parsed_record.update(_parse_record(record, _ARRESULT_TYPE2_ENTRY_MAP)) elif parsed_record['type'] == 5: - parsed_record.update(_parse_record(record, _ARRESULT_TYPE5_ENTRY_MAP)) + parsed_record.update(_parse_record(record, _ARRESULT_TIME_ADJUSTMENT_ENTRY_MAP)) return common.TimeAdjustment( _extract_timestamp(parsed_record), _extract_timestamp(parsed_record, 'old_')) -- cgit v1.2.3