support history of coming transactions

This commit is contained in:
Romain Bignon 2012-06-07 15:30:19 +02:00
commit 9d3d8eb1a1
2 changed files with 10 additions and 2 deletions

View file

@ -58,5 +58,12 @@ class HSBCBackend(BaseBackend, ICapBank):
def iter_history(self, account):
with self.browser:
for history in self.browser.get_history(account._link_id):
yield history
for tr in self.browser.get_history(account._link_id):
if not tr._coming:
yield tr
def iter_coming(self, account):
with self.browser:
for tr in self.browser.get_history(account._link_id):
if tr._coming:
yield tr