Fix 7: change the default FOURNISSEUR
This commit is contained in:
parent
90c2d3689b
commit
6b77980e6c
@ -17,6 +17,7 @@ DF_TYPES = {
|
|||||||
"annee": str,
|
"annee": str,
|
||||||
"lot": str,
|
"lot": str,
|
||||||
}
|
}
|
||||||
|
DEFAULT_FOURNISSEUR = "ROSIER MODICA MOTTEROZ SA"
|
||||||
|
|
||||||
|
|
||||||
def is_it(page_text):
|
def is_it(page_text):
|
||||||
@ -62,8 +63,8 @@ def extract(table, additionnal_fields: dict = {}):
|
|||||||
for k, v in additionnal_fields.items():
|
for k, v in additionnal_fields.items():
|
||||||
r[k] = v
|
r[k] = v
|
||||||
|
|
||||||
if "honoraire" in row[RECAPITULATIF_DES_OPERATIONS]:
|
if "honoraire" in row[RECAPITULATIF_DES_OPERATIONS].lower():
|
||||||
r["Fournisseur"] = "IMI GERANCE"
|
r["Fournisseur"] = DEFAULT_FOURNISSEUR
|
||||||
|
|
||||||
extracted.append(r)
|
extracted.append(r)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user