diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2016-11-17 13:18:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 13:18:05 +0100 |
commit | 0ffbdb229d4e94d77fb13dfb4874f280e7b069c5 (patch) | |
tree | b4ad69f3d875930b6a2d130085b635ad7d6ebe8e | |
parent | freestyle_optium: ignore β-ketones results from dumps. (diff) | |
parent | Fix error in call to map() function (diff) | |
download | glucometerutils-0ffbdb229d4e94d77fb13dfb4874f280e7b069c5.tar glucometerutils-0ffbdb229d4e94d77fb13dfb4874f280e7b069c5.tar.gz glucometerutils-0ffbdb229d4e94d77fb13dfb4874f280e7b069c5.tar.bz2 glucometerutils-0ffbdb229d4e94d77fb13dfb4874f280e7b069c5.tar.lz glucometerutils-0ffbdb229d4e94d77fb13dfb4874f280e7b069c5.tar.xz glucometerutils-0ffbdb229d4e94d77fb13dfb4874f280e7b069c5.tar.zst glucometerutils-0ffbdb229d4e94d77fb13dfb4874f280e7b069c5.zip |
Diffstat (limited to '')
-rw-r--r-- | glucometerutils/drivers/otultra2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/drivers/otultra2.py b/glucometerutils/drivers/otultra2.py index 9bb52d1..9647947 100644 --- a/glucometerutils/drivers/otultra2.py +++ b/glucometerutils/drivers/otultra2.py @@ -115,8 +115,8 @@ def _parse_datetime(response): raise exceptions.InvalidResponse(response) date, time = match.groups() - month, day, year = map(date.split('/'), int) - hour, minute, second = map(time.split(':'), int) + month, day, year = map(int, date.split('/')) + hour, minute, second = map(int, time.split(':')) # Yes, OneTouch2's firmware is not Y2K safe. return datetime.datetime(2000 + year, month, day, hour, minute, second) |