Skip to content
Snippets Groups Projects
Commit a2f4cab4 authored by Jan Prachař's avatar Jan Prachař
Browse files

org_score: Vypuštěna zmínka o sdílených místech

parent 0e57dd47
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,6 @@ class Score:
part_states: List[db.PartState]
want_successful: bool
want_winners: bool
shared_places: Optional[str]
# Řádky výsledkovky
_results: Dict[int, ScoreResult]
......@@ -125,7 +124,6 @@ class Score:
self.part_states = part_states
self.want_successful = round.score_successful_limit is not None
self.want_winners = round.score_winner_limit is not None
self.shared_places = None
# Příprava subquery na účastníky (contest_subq obsahuje master_contest_id)
sess = db.get_session()
......@@ -523,6 +521,3 @@ class Score:
"error",
"Doplňte prosím těmto soutežícím rok narození, aby mohl být použit pro řazení na sdílených místech: "+(", ".join(links))+"."
)
if self._exists_same_order_key():
self.shared_places = "O pořadí na sdílených místech rozhoduje datum narození, případně je třeba ho určit losem."
......@@ -276,7 +276,7 @@ def org_score(round_id: Optional[int] = None, hier_id: Optional[int] = None, ct_
'org_score.html',
ctx=ctx,
contest=contest, round=round, tasks=tasks,
table=table, messages=messages, shared_places=score.shared_places,
table=table, messages=messages,
need_exp = any(task.experiment for task in tasks),
group_rounds=group_rounds,
can_view_submits=ctx.rights.can_view_submits(),
......
......@@ -38,7 +38,7 @@ Výsledky {{ round.name|round_genitive|lower }}{% if public %} {{ round.year }}.
<b>Vítězi</b> se stávají účastníci s alespoň <b>{{ master.score_winner_limit|decimal }} {{ master.score_winner_limit|inflected_by("bodem", "body", "body") }}</b>.
{% endif %}
{% if master.score_successful_limit is not none %}
<b>Úspěšnými řešiteli</b> se stávají účastníci s alespoň <b>{{ master.score_successful_limit|decimal }} body</b>{% if round.tasks_successful_limit is not none %}, kteří úspěšně vyřešili alespoň <b>{{ round.tasks_successful_limit|inflected("úlohu", "úlohy", "úloh") }}</b>{% if need_exp %} a odevzdali řešení experimentální úlohy{% endif %}{% endif %}. {% if shared_places %}{{ shared_places }}{% endif %}
<b>Úspěšnými řešiteli</b> se stávají účastníci s alespoň <b>{{ master.score_successful_limit|decimal }} body</b>{% if round.tasks_successful_limit is not none %}, kteří úspěšně vyřešili alespoň <b>{{ round.tasks_successful_limit|inflected("úlohu", "úlohy", "úloh") }}</b>{% if need_exp %} a odevzdali řešení experimentální úlohy{% endif %}{% endif %}.
{% endif %}
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment