From 13b4dec209c1f12adf2f7243246b7228ceed8b7b Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Mon, 10 Jun 2024 00:00:08 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20cl=C3=A9s=20=C3=A9trang=C3=A8res?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nupes/scripts/import_resultats_web_2024.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nupes/scripts/import_resultats_web_2024.py b/nupes/scripts/import_resultats_web_2024.py index 57214bb..aeff12e 100644 --- a/nupes/scripts/import_resultats_web_2024.py +++ b/nupes/scripts/import_resultats_web_2024.py @@ -85,8 +85,10 @@ def importer_resultats_regions(engine: Engine, debug: bool = False) -> None: resultats_region.nuls = resultats["nuls"] resultats_region.exprimes = resultats["exprimes"] else: + resultats_france = session.execute(select(ResultatsFrance)).scalar_one() resultats_region = ResultatsRegion( region_id=reg_code, + resultats_france_id=resultats_france.id, inscrits=resultats["inscrits"], abstentions=resultats["abstentions"], votants=resultats["votants"],