L'affichage des résultats par région/département/circonscription/commune/bureau de vote est fonctionnel

This commit is contained in:
2024-06-16 08:11:46 +02:00
parent eb5a112c36
commit 5cc10f3106
3 changed files with 31 additions and 3 deletions

View File

@ -317,7 +317,9 @@ def exporter_resultats_bureaux_vote(engine: Engine, verbose: bool = False) -> No
iterator = tqdm(bureaux_vote, desc="Bureaux de vote") if verbose else bureaux_vote
for bureau_vote in iterator:
bureau_vote_json = {'id': bureau_vote.id, 'commune': bureau_vote.commune_code}
bureau_vote_json = {'id': bureau_vote.id,
'commune': bureau_vote.commune_code,
'circonscription': bureau_vote.circo_code}
bureaux_vote_json.append(bureau_vote_json)
resultats_bureau_vote = session.execute(