From ed8551a4151bc0bd4245ee2d26b77cc8eb67a492 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 22 Mar 2012 21:58:24 +0100 Subject: [PATCH] fix parsing of dates --- modules/cragr/pages/accounts_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cragr/pages/accounts_list.py b/modules/cragr/pages/accounts_list.py index a9e59189..10553085 100644 --- a/modules/cragr/pages/accounts_list.py +++ b/modules/cragr/pages/accounts_list.py @@ -202,7 +202,7 @@ class AccountsList(CragrBasePage): matches = re.search('([012]?[0-9]|3[01])\s*/\s*(0?[1-9]|1[012])', string) if matches is None: return self.fallback_date() - return self.date_from_day_month(int(matches[1]), int(matches[2])) + return self.date_from_day_month(int(matches.group(1)), int(matches.group(2))) def date_from_day_month(self, day, month): today = date.today()