Ajout données de géométrie administrative

This commit is contained in:
2024-06-08 17:10:19 +02:00
parent ed4ede0d7f
commit b1aee3ad07
8 changed files with 332 additions and 6 deletions

View File

@@ -125,7 +125,7 @@ def importer_listes(engine: Engine) -> None:
def importer_candidats(engine: Engine) -> None:
DATASET_URL = "https://www.data.gouv.fr/fr/datasets/r/483cd4bd-1b0e-4b52-a923-aadadf9c8f62"
file = get_file(DATASET_URL, "candidats_2024.csv")
file = get_file(DATASET_URL, "candidats_2024-{etag}.csv")
with file.open('r') as f:
with Session(engine) as session: