From b85b44547be4ca12a30567191622232d33e3a6fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Thu, 8 Mar 2012 23:41:11 +0100 Subject: [PATCH] Fix date=due problem --- lib/invoice/db/invoices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/invoice/db/invoices.py b/lib/invoice/db/invoices.py index c95637b..79d6bac 100644 --- a/lib/invoice/db/invoices.py +++ b/lib/invoice/db/invoices.py @@ -66,7 +66,7 @@ class InvoiceData(Data): _number_template = "{year}{number:03}" def _parse_date(self, date): - match = self._date_regex.match(self.date) + match = self._date_regex.match(date) if not match: raise ValueError("Bad date format: {}".format(date)) log.debug("Date match: {0}".format(match.groups()))