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():