remove unused code, fix timeout of history fetch
This commit is contained in:
parent
7d81005988
commit
3df00b6395
4 changed files with 141 additions and 547 deletions
|
|
@ -47,14 +47,12 @@ class PaypalModule(Module, CapBank):
|
|||
return self.browser.get_accounts().itervalues()
|
||||
|
||||
def get_account(self, _id):
|
||||
with self.browser:
|
||||
account = self.browser.get_account(_id)
|
||||
account = self.browser.get_account(_id)
|
||||
if account:
|
||||
return account
|
||||
else:
|
||||
raise AccountNotFound()
|
||||
|
||||
def iter_history(self, account):
|
||||
with self.browser:
|
||||
for history in self.browser.get_download_history(account):
|
||||
yield history
|
||||
for history in self.browser.get_download_history(account):
|
||||
yield history
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue