fix support of deferred transactions

This commit is contained in:
Romain Bignon 2013-01-11 19:07:49 +01:00
commit 9aa27eb225
3 changed files with 17 additions and 4 deletions

View file

@ -60,8 +60,12 @@ class BarclaysBackend(BaseBackend, ICapBank):
def iter_history(self, account):
with self.browser:
return self.browser.get_history(account)
for tr in self.browser.get_history(account):
if not tr._coming:
yield tr
def iter_coming(self, account):
with self.browser:
return self.browser.get_coming_operations(account)
for tr in self.browser.get_card_operations(account):
if tr._coming:
yield tr