Capitalisation des constantes

This commit is contained in:
Colin Maudry
2026-04-18 18:09:42 +02:00
parent accdfe1384
commit e352624c02
14 changed files with 128 additions and 127 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
from dash import dcc, html, register_page
from src.utils import departements
from src.old_utils import DEPARTEMENTS
name = "Départements"
NAME = "Départements"
register_page(
__name__,
@@ -18,7 +18,7 @@ layout = html.Div(
html.Ul(
[
html.Li(dcc.Link(d["departement"], href=f"/departements/{k}"))
for k, d in departements.items()
for k, d in DEPARTEMENTS.items()
]
),
]