fixing date not in the good interval

This commit is contained in:
Vincent Paredes 2014-02-24 19:02:13 +01:00 committed by Romain Bignon
commit 64ef0de61d
3 changed files with 20 additions and 21 deletions

View file

@ -62,10 +62,5 @@ class AmericanExpressBackend(BaseBackend, ICapBank):
with self.browser:
transactions = list(self.browser.get_history(account))
transactions.sort(key=lambda tr: tr.rdate, reverse=True)
return [tr for tr in transactions if not tr._is_coming]
return transactions
def iter_coming(self, account):
with self.browser:
transactions = list(self.browser.get_history(account))
transactions.sort(key=lambda tr: tr.rdate, reverse=True)
return [tr for tr in transactions if tr._is_coming]