From 8b95206d51428b3581bcb7a6400fdaf51c44c5ff Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 10 Oct 2012 17:20:08 +0200 Subject: [PATCH] there are no coming operations with HSBC --- modules/hsbc/pages/accounts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/hsbc/pages/accounts.py b/modules/hsbc/pages/accounts.py index 91e331e5..674930bb 100644 --- a/modules/hsbc/pages/accounts.py +++ b/modules/hsbc/pages/accounts.py @@ -80,5 +80,8 @@ class HistoryPage(BasePage): op = Transaction(m.group(1)) op.parse(date=m.group(3), raw=re.sub(u'[ ]+', u' ', m.group(4).replace(u'\n', u' '))) op.set_amount(m.group(5)) - op._coming = (re.match('\d+/\d+/\d+', m.group(2)) is None) + # XXX As coming operations are already considered by account balance, never mark + # them as coming. + #op._coming = (re.match('\d+/\d+/\d+', m.group(2)) is None) + op._coming = False yield op