hsbc to browser2!

This commit is contained in:
Vincent Paredes 2014-03-20 18:26:45 +01:00 committed by Romain Bignon
commit 2766983a33
6 changed files with 212 additions and 339 deletions

View file

@ -59,14 +59,5 @@ class HSBCBackend(BaseBackend, ICapBank):
raise AccountNotFound()
def iter_history(self, account):
with self.browser:
for tr in self.browser.get_history(account):
# If there are deferred cards, strip CB invoices.
if not tr._coming and (not tr.raw.startswith('FACTURES CB') or len(account._card_links) == 0):
yield tr
def iter_coming(self, account):
with self.browser:
for tr in self.browser.get_history(account):
if tr._coming:
yield tr
for tr in self.browser.get_history(account):
yield tr