Commit 8da4dd88 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[boursorama] Include personal insurances in ignored accounts

These insurances are not handled yet by the module and contain a URL
that is not handled by
Since they only are personal insurances, we just ignore them like car

Closes: 28536@sibi
parent 19a0bf8f
......@@ -241,7 +241,8 @@ class AccountsPage(LoggedPage, HTMLPage):
load_details = Field('url') & AsyncLoad
def condition(self):
return not self.is_external() and not 'automobile' in Field('url')(self)
# Ignore externally aggregated accounts and insurances:
return not self.is_external() and not any(x in Field('url')(self) for x in ('automobile', 'assurance/protection'))
obj_label = CleanText('.//a[has-class("account--name")] | .//div[has-class("account--name")]')
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