Correction de la détection du nombre de voix

This commit is contained in:
Emmy D'Anello 2024-06-09 23:23:30 +02:00
parent 8926c6a00c
commit 79763a04c9
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ def analyser_resultats(file) -> dict:
resultats_par_liste.append(liste)
liste['nom'] = cells[0].string
liste['voix'] = int(cells[1].string.replace(" ", ""))
liste['voix'] = int(cells[2].string.replace("\n", "").replace(" ", ""))
elif table.find('td', text=re.compile("Inscrits")):
tbody = table.tbody
for line in tbody.find_all('tr'):