diff --git a/nupes/scripts/import_resultats_web_2024.py b/nupes/scripts/import_resultats_web_2024.py index 13b4326..42da5c5 100644 --- a/nupes/scripts/import_resultats_web_2024.py +++ b/nupes/scripts/import_resultats_web_2024.py @@ -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'):