From 79763a04c95d17fc6179b28617ef6b270553980e Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sun, 9 Jun 2024 23:23:30 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20de=20la=20d=C3=A9tection=20du=20no?= =?UTF-8?q?mbre=20de=20voix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nupes/scripts/import_resultats_web_2024.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'):