From f21512f2dc53d2c49aa756e8f00df5fcb3797ce0 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Mon, 2 Nov 2020 15:40:16 +0100 Subject: [PATCH] =?UTF-8?q?[cragr]=20Handle=20iter=5Finvestments=20for=20"?= =?UTF-8?q?Patrimoine=20St=20Honor=C3=A9"=20Life=20Insurances?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to handle this label in the "life_insurance_investments" case so that investments can be fetched properly. --- modules/cragr/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cragr/browser.py b/modules/cragr/browser.py index 17808e27e2..48baf412e0 100644 --- a/modules/cragr/browser.py +++ b/modules/cragr/browser.py @@ -715,7 +715,7 @@ def iter_investment(self, account): if ( account.type == Account.TYPE_LIFE_INSURANCE - and ('rothschild' in account.label.lower() or re.match(r'^open (perspective|strat)', account.label, re.I)) + and re.match(r'(rothschild)|(^patrimoine st honor)|(^open (perspective|strat))', account.label, re.I) ): # We must go to the right perimeter before trying to access the Life Insurance investments self.go_to_account_space(account._contract) -- GitLab