Réduction des petites erreurs qui polluent les logs

This commit is contained in:
Colin Maudry
2026-06-07 18:56:16 +02:00
parent 4d3e8ac344
commit ed32b0f66b
4 changed files with 21 additions and 14 deletions
+2 -1
View File
@@ -109,7 +109,7 @@ def update_marche_info(marche, titulaires):
column_object = DATA_SCHEMA.get(col)
column_name = column_object.get("title") if column_object else col
if col in marche:
if marche and col in marche:
if col == "acheteur_nom":
value = html.A(
href=f"/acheteurs/{marche['acheteur_id']}",
@@ -134,6 +134,7 @@ def update_marche_info(marche, titulaires):
"considerationsSociales",
"considerationsEnvironnementales",
]
and col in marche
and "," in marche[col]
):
col_values = marche[col].split(", ")