From c98a36f759c71691ef50df4a2b97760dfa2ca151 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Tue, 14 Oct 2025 12:54:47 +0200 Subject: [PATCH] Fix fiche marche --- src/pages/marche.py | 2 -- src/utils.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/marche.py b/src/pages/marche.py index bfa4bae..4fbd04b 100644 --- a/src/pages/marche.py +++ b/src/pages/marche.py @@ -110,8 +110,6 @@ def update_marche_info(marche, titulaires): # Dates elif col in ["dateNotification", "datePublicationDonnees"]: - print(marche[col]) - value = datetime.fromisoformat(marche[col]).strftime("%d/%m/%Y") # Listes diff --git a/src/utils.py b/src/utils.py index d73a6a0..acf5ae7 100644 --- a/src/utils.py +++ b/src/utils.py @@ -126,6 +126,8 @@ def format_number(number) -> str: def format_montant(dff: pl.DataFrame) -> pl.DataFrame: def format_function(expr, scale=None): # https://stackoverflow.com/a/78636786 + print(type(expr)) + expr = expr.cast(pl.String) expr = expr.str.splitn(".", 2) num = expr.struct[0]