|
|
@ -54,7 +54,7 @@ def get_results() -> Vysledek:
|
|
|
|
for kandidat in root.findall(rf'./{NS}CR/{NS}KANDIDAT'):
|
|
|
|
for kandidat in root.findall(rf'./{NS}CR/{NS}KANDIDAT'):
|
|
|
|
ka = kandidat.attrib
|
|
|
|
ka = kandidat.attrib
|
|
|
|
jmeno = f'{ka[r"JMENO"]} {ka[r"PRIJMENI"]}'
|
|
|
|
jmeno = f'{ka[r"JMENO"]} {ka[r"PRIJMENI"]}'
|
|
|
|
hlasy = int(ka[r'HLASY_1KOLO'])
|
|
|
|
hlasy = int(ka.get(r'HLASY_1KOLO', 0))
|
|
|
|
kandidati[jmeno] = hlasy
|
|
|
|
kandidati[jmeno] = hlasy
|
|
|
|
|
|
|
|
|
|
|
|
for ucast in root.findall(rf'./{NS}CR/{NS}UCAST'):
|
|
|
|
for ucast in root.findall(rf'./{NS}CR/{NS}UCAST'):
|
|
|
|