Skip to content
Permalink
Browse files

new line at end of .gitignore, rename arresult entry map

  • Loading branch information...
schferbe authored and Flameeyes committed Apr 15, 2019
1 parent 3e1ef26 commit 7b4d366cda05ced9fc5f0c72fc2a3702f72e42c6
Showing with 3 additions and 3 deletions.
  1. +1 −1 .gitignore
  2. +2 −2 glucometerutils/drivers/fslibre.py
@@ -8,4 +8,4 @@
__pycache__/
build
.idea/
*venv/
*venv/
@@ -57,7 +57,7 @@
(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_'))

0 comments on commit 7b4d366

Please sign in to comment.
You can’t perform that action at this time.