Correction clés étrangères
This commit is contained in:
		@@ -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"],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user