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

[boursorama] Included "assurance/comptes" in ignored accounts

In addition to "assurance/protection", the advertisement for
"assurance/comptes" also leads to an advertisement so I added this piece
of URL to the tuple of account URLs to ignore.

Closes: 28536@Sibi
parent a7c3b591
......@@ -242,7 +242,7 @@ class AccountsPage(LoggedPage, HTMLPage):
def condition(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'))
return not self.is_external() and not any(x in Field('url')(self) for x in ('automobile', 'assurance/protection', 'assurance/comptes'))
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