Skip to content
Snippets Groups Projects
Commit 9767bbea authored by Martin Mareš's avatar Martin Mareš
Browse files

mo.score: Nechceme používat floatové dělení

parent 05b79069
Branches
No related tags found
1 merge request!36Vylepšení výsledkové listiny
This commit is part of merge request !36. Comments created here will be created in the context of that merge request.
......@@ -374,12 +374,12 @@ class Score:
winners += 1
if result.successful:
successfulls += 1
if successfulls > participants/2:
if successfulls > participants // 2:
self._add_message(
"error",
f"Počet úspěšných řešitelů ({successfulls}) převyšuje polovinu celkového počtu účastníků ({participants})"
)
if winners > successfulls/2:
if winners > successfulls // 2:
self._add_message(
"error",
f"Počet vítězů ({winners}) převyšuje polovinu počtu úspěšných řešitelů ({successfulls})"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment