From 6b77980e6c65aae8f9d4c95b648b1db73cc4f16e Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Fri, 7 Jul 2023 21:26:00 +0200 Subject: [PATCH] Fix 7: change the default FOURNISSEUR --- pdf_oralia/pages/charge.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdf_oralia/pages/charge.py b/pdf_oralia/pages/charge.py index bd43a20..190e5ff 100644 --- a/pdf_oralia/pages/charge.py +++ b/pdf_oralia/pages/charge.py @@ -17,6 +17,7 @@ DF_TYPES = { "annee": str, "lot": str, } +DEFAULT_FOURNISSEUR = "ROSIER MODICA MOTTEROZ SA" def is_it(page_text): @@ -62,8 +63,8 @@ def extract(table, additionnal_fields: dict = {}): for k, v in additionnal_fields.items(): r[k] = v - if "honoraire" in row[RECAPITULATIF_DES_OPERATIONS]: - r["Fournisseur"] = "IMI GERANCE" + if "honoraire" in row[RECAPITULATIF_DES_OPERATIONS].lower(): + r["Fournisseur"] = DEFAULT_FOURNISSEUR extracted.append(r) -- 2.45.2