From c902802160d87db0a6fa7126f960fb0cf59fd5cc Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 10 Apr 2012 10:17:36 +0200 Subject: [PATCH] fix: credit and debit where inversed --- modules/boursorama/pages/account_history.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/boursorama/pages/account_history.py b/modules/boursorama/pages/account_history.py index 220f3a27..9b20bb57 100644 --- a/modules/boursorama/pages/account_history.py +++ b/modules/boursorama/pages/account_history.py @@ -65,8 +65,8 @@ class AccountHistory(BasePage): category = labeldiv.attrib.get('title', '') useless, sep, category = [part.strip() for part in category.partition(':')] - credit = tds[3].text or "" - debit = tds[4].text or "" + debit = tds[3].text or "" + credit = tds[4].text or "" operation = Transaction(len(self.operations)) operation.parse(date=d, raw=label)