From e7b44019f2071e15e89626d2adbb374836fe7683 Mon Sep 17 00:00:00 2001 From: Ludovic LANGE <llange@users.noreply.github.com> Date: Sat, 1 Mar 2025 01:27:03 +0100 Subject: [PATCH] [boursorama] fix loans - multiple possible texts for subscription date --- modules/boursorama/pages.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/boursorama/pages.py b/modules/boursorama/pages.py index 0973f4fca0..036d8def3b 100644 --- a/modules/boursorama/pages.py +++ b/modules/boursorama/pages.py @@ -607,7 +607,11 @@ class get_loan(ItemElement): int, CleanDecimal.French('//p[contains(text(), "ances totales") or contains(text(), "Nombre total")]/span') ) obj_subscription_date = Date( - CleanText('//p[contains(text(), "Date de souscription")]/span'), parse_func=parse_french_date + Coalesce( + CleanText('//p[contains(text(), "Date de souscription")]/span'), + CleanText('//p[contains(text(), "Date de départ du prêt")]/span'), + ), + parse_func=parse_french_date, ) obj_total_amount = Coalesce( -- GitLab