From a2f4cab4cc36059398900171e5d0709c6d1ae584 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pracha=C5=99?= <jan.prachar@gmail.com>
Date: Mon, 23 May 2022 09:51:30 +0200
Subject: [PATCH] =?UTF-8?q?org=5Fscore:=20Vypu=C5=A1t=C4=9Bna=20zm=C3=ADnk?=
 =?UTF-8?q?a=20o=20sd=C3=ADlen=C3=BDch=20m=C3=ADstech?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mo/score.py                     | 5 -----
 mo/web/org_score.py             | 2 +-
 mo/web/templates/org_score.html | 2 +-
 3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/mo/score.py b/mo/score.py
index 4972d6e4..2222b09c 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 887af742..5ead4e46 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 aac498b9..63076849 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 %}
 
-- 
GitLab