Petits ajustements

This commit is contained in:
Colin Maudry
2026-01-28 12:49:04 +01:00
parent b3bd488882
commit a76a14b030
2 changed files with 9 additions and 7 deletions
+4 -3
View File
@@ -114,7 +114,7 @@ def get_marche_data(url) -> tuple[dict, list]:
Input("titulaires_data", "data"),
)
def update_marche_info(marche, titulaires):
def make_parameter(col):
def make_parameter(col, bold=True):
column_object = data_schema.get(col)
column_name = column_object.get("title") if column_object else col
@@ -158,10 +158,11 @@ def update_marche_info(marche, titulaires):
else:
value = ""
param_content = html.P([column_name, " : ", html.Strong(value)])
value = html.Strong(value) if bold else value
param_content = html.P([column_name, " : ", value])
return param_content
marche_objet = make_parameter("objet")
marche_objet = make_parameter("objet", bold=False)
marche_infos = [
make_parameter("id"),