Correction de la détection du nombre de voix
This commit is contained in:
parent
8926c6a00c
commit
79763a04c9
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue