Skip to content

Commit

Permalink
new line at end of .gitignore, rename arresult entry map
Browse files Browse the repository at this point in the history
  • Loading branch information
schferbe authored and Flameeyes committed May 5, 2019
1 parent 3e1ef26 commit 7b4d366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -8,4 +8,4 @@
__pycache__/
build
.idea/
*venv/
*venv/
4 changes: 2 additions & 2 deletions glucometerutils/drivers/fslibre.py
Expand Up @@ -57,7 +57,7 @@
(28, 'errors'),
)

_ARRESULT_TYPE5_ENTRY_MAP = (
_ARRESULT_TIME_ADJUSTMENT_ENTRY_MAP = (
(9, 'old_month'),
(10, 'old_day'),
(11, 'old_year'),
Expand Down Expand Up @@ -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_'))
Expand Down

0 comments on commit 7b4d366

Please sign in to comment.