Commit d127f35f authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[cragr/api] Included PER to iter_investments

It works well with the connection I checked.
parent 2b35e7ab
......@@ -543,7 +543,7 @@ class CragrAPI(LoginBrowser):
#for inv in self.page.iter_investments():
# yield inv
elif account.type in (Account.TYPE_PERP, Account.TYPE_PERCO, Account.TYPE_LIFE_INSURANCE, Account.TYPE_CAPITALISATION):
elif account.type in (Account.TYPE_PER, Account.TYPE_PERP, Account.TYPE_PERCO, Account.TYPE_LIFE_INSURANCE, Account.TYPE_CAPITALISATION):
if account.label == "Vers l'avenir":
# Website crashes when clicking on these Life Insurances...
return
......
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