Plus de tolérance dans l'ingestion des data dicts
This commit is contained in:
@@ -37,6 +37,11 @@ Ne pas oublier de mettre à jour les fichier .env.
|
|||||||
|
|
||||||
## Notes de version
|
## Notes de version
|
||||||
|
|
||||||
|
#### 2.3.0 (24 nomvembre 2025)
|
||||||
|
|
||||||
|
- Possibilité de filtrer, trier etc. dans les vues acheteur et titulaire
|
||||||
|
-
|
||||||
|
|
||||||
##### 2.2.2 (22 novembre 2025)
|
##### 2.2.2 (22 novembre 2025)
|
||||||
|
|
||||||
- Correction d'un bug dans le téléchargement Excel
|
- Correction d'un bug dans le téléchargement Excel
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ from utils import add_links_in_dict, format_values, setup_table_columns
|
|||||||
|
|
||||||
|
|
||||||
def get_top_org_table(data, org_type: str):
|
def get_top_org_table(data, org_type: str):
|
||||||
dff = pl.DataFrame(data)
|
dff = pl.DataFrame(data, strict=False, infer_schema_length=5000)
|
||||||
if dff.height == 0:
|
if dff.height == 0:
|
||||||
return html.Div()
|
return html.Div()
|
||||||
|
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ def update_acheteur_infos(url):
|
|||||||
Input(component_id="acheteur_data", component_property="data"),
|
Input(component_id="acheteur_data", component_property="data"),
|
||||||
)
|
)
|
||||||
def update_acheteur_stats(data):
|
def update_acheteur_stats(data):
|
||||||
dff = pl.DataFrame(data)
|
dff = pl.DataFrame(data, strict=False, infer_schema_length=5000)
|
||||||
if dff.height == 0:
|
if dff.height == 0:
|
||||||
dff = pl.DataFrame(schema=df.collect_schema())
|
dff = pl.DataFrame(schema=df.collect_schema())
|
||||||
df_marches = dff.unique("id")
|
df_marches = dff.unique("id")
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ def update_titulaire_infos(url):
|
|||||||
Input(component_id="titulaire_data", component_property="data"),
|
Input(component_id="titulaire_data", component_property="data"),
|
||||||
)
|
)
|
||||||
def update_titulaire_stats(data):
|
def update_titulaire_stats(data):
|
||||||
dff = pl.DataFrame(data)
|
dff = pl.DataFrame(data, strict=False, infer_schema_length=5000)
|
||||||
if dff.height == 0:
|
if dff.height == 0:
|
||||||
nb_marches = 0
|
nb_marches = 0
|
||||||
nb_acheteurs = 0
|
nb_acheteurs = 0
|
||||||
|
|||||||
+1
-1
@@ -551,7 +551,7 @@ def prepare_table_data(
|
|||||||
|
|
||||||
# Récupération des données
|
# Récupération des données
|
||||||
if isinstance(data, list):
|
if isinstance(data, list):
|
||||||
lff: pl.LazyFrame = pl.LazyFrame(data)
|
lff: pl.LazyFrame = pl.LazyFrame(data, strict=False, infer_schema_length=5000)
|
||||||
else:
|
else:
|
||||||
lff: pl.LazyFrame = df.lazy() # start from the original data
|
lff: pl.LazyFrame = df.lazy() # start from the original data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user