From 252419cfefc3f9a516d35e1075c3d6952599c80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Thu, 8 Mar 2012 23:23:49 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20broken=20=E2=80=9Cdue=E2=80=9D=20date.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 5340091..be56e1d 100644 --- a/lib/invoice/db/invoices.py +++ b/lib/invoice/db/invoices.py @@ -97,7 +97,7 @@ class InvoiceData(Data): def _postprocess_dates(self): date = self._parse_date(self._item.date) - if "due" in self._data: + if self.due: try: due = self._parse_date(self.due) except ValueError: