diff --git a/mo/score.py b/mo/score.py index 4972d6e40ee962267da23f0cd5165737254cf739..2222b09c9567f7ea75b9e3a0ee22c9fe56b76c17 100644 --- a/mo/score.py +++ b/mo/score.py @@ -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." diff --git a/mo/web/org_score.py b/mo/web/org_score.py index 887af74234f8090ef37d8ac18c365a207368130a..5ead4e46deb11c2af246099c0d6089b7133f8ee9 100644 --- a/mo/web/org_score.py +++ b/mo/web/org_score.py @@ -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(), diff --git a/mo/web/templates/org_score.html b/mo/web/templates/org_score.html index aac498b935e17c627a7e4d6fe22c70a4bffdbdd8..63076849ded63a2c916704ea885c8c34e71014c3 100644 --- a/mo/web/templates/org_score.html +++ b/mo/web/templates/org_score.html @@ -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 %}