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

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

parent 47e8fefe
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !36. Comments created here will be created in the context of that merge request.
...@@ -373,12 +373,12 @@ class Score: ...@@ -373,12 +373,12 @@ class Score:
winners += 1 winners += 1
if result.successful: if result.successful:
successfulls += 1 successfulls += 1
if successfulls > participants/2: if successfulls > participants // 2:
self._add_message( self._add_message(
"error", "error",
f"Počet úspěšných řešitelů ({successfulls}) převyšuje polovinu celkového počtu účastníků ({participants})" 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( self._add_message(
"error", "error",
f"Počet vítězů ({winners}) převyšuje polovinu počtu úspěšných řešitelů ({successfulls})" 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