From c3f87ad78f91265792c254dd54f9f409e666873a Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 1 Aug 2013 16:52:47 +0200 Subject: [PATCH] banquepop: store vdate --- modules/banquepopulaire/pages.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/banquepopulaire/pages.py b/modules/banquepopulaire/pages.py index b938e363..92439f19 100644 --- a/modules/banquepopulaire/pages.py +++ b/modules/banquepopulaire/pages.py @@ -303,11 +303,12 @@ class TransactionsPage(BasePage): # necessary to use the *operation* one. # Default sort on website is by compta date, so in browser.py we # change the sort on value date. - date = self.parser.tocleanstring(tds[self.COL_VALUE_DATE]) + date = self.parser.tocleanstring(tds[self.COL_OP_DATE]) + vdate = self.parser.tocleanstring(tds[self.COL_VALUE_DATE]) raw = self.parser.tocleanstring(tds[self.COL_LABEL]) debit = self.parser.tocleanstring(tds[self.COL_DEBIT]) credit = self.parser.tocleanstring(tds[self.COL_CREDIT]) - t.parse(date, re.sub(r'[ ]+', ' ', raw)) + t.parse(date, re.sub(r'[ ]+', ' ', raw), vdate) t.set_amount(credit, debit) yield t