hsbc to browser2!
This commit is contained in:
parent
4ac38b89cf
commit
2766983a33
6 changed files with 212 additions and 339 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue