Skip to content
Snippets Groups Projects

Utilisation de DockerHub

Merged Benoît Courty requested to merge refacto-entreprise into master
2 files
+ 14
8
Compare changes
  • Side-by-side
  • Inline

Files

+ 10
5
@@ -27,6 +27,11 @@ if "--kit" in sys.argv:
else:
mode_kit_depute = False
# Source https://www.insee.fr/fr/statistiques/5225246
# au 1ᵉʳ janvier 2023, la France compte 68 042 591 habitants.
# Note : La variable population_nat calculée d'après la base donne une valeur plus ancienne.
POPULATION_TOTALE = 68_042_591
test = True
complet = True
TITRE = config("PDF_TITRE", default="DataCirco")
@@ -1069,7 +1074,7 @@ if test:
utilitaires.txt2tex(etab[1]),
etab[2],
"1 pour " + utilitaires.myint(population / etab[2]),
"1 pour " + utilitaires.myint(67000000 / etab[3]),
"1 pour " + utilitaires.myint(POPULATION_TOTALE / etab[3]),
)
)
@@ -1095,7 +1100,7 @@ if test:
utilitaires.txt2tex(legende[1]).lower(),
utilitaires.txt2tex(legende[1]).lower(),
utilitaires.myint(population / legende[2]),
utilitaires.myint(67000000 / legende[3]),
utilitaires.myint(POPULATION_TOTALE / legende[3]),
)
)
@@ -1176,7 +1181,7 @@ if test:
utilitaires.txt2tex(ps[0]),
ps[1],
"1 pour " + utilitaires.myint(population / ps[1]),
"1 pour " + utilitaires.myint(67000000 / ps[2]),
"1 pour " + utilitaires.myint(POPULATION_TOTALE / ps[2]),
)
)
else:
@@ -1186,7 +1191,7 @@ if test:
utilitaires.txt2tex(ps[0]),
ps[1],
"",
"1 pour " + utilitaires.myint(67000000 / ps[2]),
"1 pour " + utilitaires.myint(POPULATION_TOTALE / ps[2]),
)
)
if ps[0] == "Médecin généraliste":
@@ -1209,7 +1214,7 @@ if test:
% (
legende[1],
utilitaires.myint(population / legende[1]),
utilitaires.myint(67000000 / legende[2]),
utilitaires.myint(POPULATION_TOTALE / legende[2]),
)
)
except Exception as e:
Loading