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

[boursorama] Added Consumer Credits to the list of ignored Loans

in iter_history, trying the _webid request on a Loan or a Consumer
Credit leads to a 404: "La page demandée n'existe plus!"
Adding the Consumer Credits to the ignored accounts solves the problem.
parent 83cb74ef
......@@ -358,7 +358,7 @@ class BoursoramaBrowser(RetryLoginBrowser, StatesMixin):
@retry_on_logout()
@need_login
def get_history(self, account, coming=False):
if account.type is Account.TYPE_LOAN or '/compte/derive' in account.url:
if account.type in (Account.TYPE_LOAN, Account.TYPE_CONSUMER_CREDIT) or '/compte/derive' in account.url:
return []
if account.type is Account.TYPE_SAVINGS and u"PLAN D'\xc9PARGNE POPULAIRE" in account.label:
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