From 2b10c4c7b2f26331d3facc5912f8b091fed32090 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Thu, 13 Jun 2024 11:31:23 +0200 Subject: [PATCH] Utilisation du code d'arrondissement pour importer les communes --- nupes/scripts/import_geographie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nupes/scripts/import_geographie.py b/nupes/scripts/import_geographie.py index 0407ce2..8e79188 100644 --- a/nupes/scripts/import_geographie.py +++ b/nupes/scripts/import_geographie.py @@ -80,7 +80,7 @@ def importer_communes(engine: Engine, debug: bool = False) -> None: with Session(engine) as session: for feature in features: commune_dict = feature['properties'] - code_commune = commune_dict['com_code'][0] + code_commune = commune_dict['com_arm_code'][0] nom_commune = commune_dict['com_name'][0] if commune := session.execute(select(Commune).filter_by(code_insee=code_commune)).scalar_one_or_none():