Lien a propos direct, ordre section, mini erreur dans marche.py

This commit is contained in:
Colin Maudry
2026-06-26 15:46:10 +02:00
parent b25150faa3
commit 57dd4d22eb
3 changed files with 8 additions and 5 deletions
+3 -1
View File
@@ -177,7 +177,9 @@ navbar = dbc.Navbar(
dbc.NavItem(
dbc.NavLink(
page["name"].replace(" ", " "),
href=page["relative_path"],
href=page["relative_path"] + "/presentation"
if page["name"] == "À propos"
else page["relative_path"],
active="exact",
)
)
+4 -4
View File
@@ -3,16 +3,16 @@ from dash import Input, Output, State, callback, html
SECTIONS = [
{"key": "presentation", "label": "Présentation", "href": "/a-propos/presentation"},
{"key": "explorer", "label": "Explorer le projet", "href": "/a-propos/explorer"},
{"key": "sources", "label": "Sources de données", "href": "/a-propos/sources"},
{"key": "qualite", "label": "Qualité des données", "href": "/a-propos/qualite"},
{
"key": "donnees-brutes",
"label": "Données brutes",
"href": "/a-propos/donnees-brutes",
},
{"key": "contact", "label": "Contact", "href": "/a-propos/contact"},
{"key": "contribuer", "label": "Contribuer", "href": "/a-propos/contribuer"},
{"key": "explorer", "label": "Explorer le projet", "href": "/a-propos/explorer"},
{"key": "qualite", "label": "Qualité des données", "href": "/a-propos/qualite"},
{"key": "sources", "label": "Sources de données", "href": "/a-propos/sources"},
{"key": "contact", "label": "Contact", "href": "/a-propos/contact"},
{
"key": "mentions-legales",
"label": "Mentions légales",
+1
View File
@@ -135,6 +135,7 @@ def update_marche_info(marche, titulaires):
"considerationsEnvironnementales",
]
and col in marche
and marche[col]
and "," in marche[col]
):
col_values = marche[col].split(", ")