X-Git-Url: https://git.immae.eu/?p=perso%2FDenise%2Foms.git;a=blobdiff_plain;f=gestion_donnees.py;h=228a7cb352bbc982d326c0ea0cdefd926025e97c;hp=12afd5a8f35565dd2e3622fca0ab18a4699d7da5;hb=9e4c51c76d337e1f8c757cd2f99a4eed615687b4;hpb=fa4d0206a29c869fd15c6890c0e44def2c95ba1c diff --git a/gestion_donnees.py b/gestion_donnees.py index 12afd5a..228a7cb 100644 --- a/gestion_donnees.py +++ b/gestion_donnees.py @@ -172,11 +172,12 @@ def gere_configuration(data,liste_err): # unité unite = data.get("unite","") - if not (unite in liste_unites_valides): + + if not (unite in CONFIG["liste_unites"]): unite = "" #warning("L'unité "+unite+" n'est pas reconnue !",liste_err) configuration["unite"] = unite - + # grille grille = data.get("grille","") if grille != "on":