Commit b20f4a4e authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[amundi] Rename iter_investments => iter_investment

Most methods are called 'iter_investment' in browser.py and this
uniformization is required in order to call iter_investment() from the AG2R module.
parent 1706f874
......@@ -50,7 +50,7 @@ class AmundiBrowser(LoginBrowser):
.iter_accounts())
@need_login
def iter_investments(self, account):
def iter_investment(self, account):
return (self.accounts.go(headers={'X-noee-authorization': ('noeprd %s' % self.token)})
.iter_investments(account_id=account.id))
......
......@@ -53,7 +53,7 @@ class AmundiModule(Module, CapBankWealth):
return self.browser.iter_accounts()
def iter_investment(self, account):
for inv in self.browser.iter_investments(account):
for inv in self.browser.iter_investment(account):
if inv.valuation != 0:
yield inv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment