summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen <b-schaefer@posteo.de>2019-04-15 09:08:26 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2019-05-05 18:04:36 +0200
commit7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6 (patch)
tree3feca6a9531d9292341c5684dca697d586f40c66
parentadd time adjustments to fslibre dump (diff)
downloadglucometerutils-7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6.tar
glucometerutils-7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6.tar.gz
glucometerutils-7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6.tar.bz2
glucometerutils-7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6.tar.lz
glucometerutils-7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6.tar.xz
glucometerutils-7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6.tar.zst
glucometerutils-7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6.zip
-rw-r--r--.gitignore2
-rw-r--r--glucometerutils/drivers/fslibre.py4
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_'))