From 70d2267982925deb04811abb17fd989683d55d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Wed, 31 Aug 2016 20:32:06 +0100 Subject: freestyle_optium: fix reversed parameters to map(). Not sure how this ever worked. --- glucometerutils/drivers/freestyle_optium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glucometerutils/drivers/freestyle_optium.py b/glucometerutils/drivers/freestyle_optium.py index a15b74d..da6aa84 100644 --- a/glucometerutils/drivers/freestyle_optium.py +++ b/glucometerutils/drivers/freestyle_optium.py @@ -263,7 +263,7 @@ class Device(object): month = _MONTH_MATCHES[match.group('month')] year = int(match.group('year')) - hour, minute = map(match.group('time').split(':'), int) + hour, minute = map(int, match.group('time').split(':')) timestamp = datetime.datetime(year, month, day, hour, minute) -- cgit v1.2.3