From c1dd5472f240ff6149bb5cb28dd0dbbc8f52c662 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Mon, 26 Nov 2018 13:36:10 +0100 Subject: [PATCH] [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 --- modules/boursorama/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/boursorama/pages.py b/modules/boursorama/pages.py index a3f4eba1ef..26477ca850 100644 --- a/modules/boursorama/pages.py +++ b/modules/boursorama/pages.py @@ -242,7 +242,7 @@ class item(ItemElement): 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")]') -- GitLab