remove lot of fucking shit and keep card transactions in separate card accounts
This commit is contained in:
parent
9e61376aa6
commit
78f6127f9e
3 changed files with 14 additions and 73 deletions
|
|
@ -66,12 +66,4 @@ class BredModule(Module, CapBank):
|
|||
|
||||
def iter_history(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 not tr._is_coming]
|
||||
|
||||
def iter_coming(self, account):
|
||||
with self.browser:
|
||||
transactions = list(self.browser.get_card_operations(account))
|
||||
transactions.sort(key=lambda tr: tr.rdate, reverse=True)
|
||||
return [tr for tr in transactions if tr._is_coming]
|
||||
return self.browser.get_history(account)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue