From 65a237908359cfd440cd92dc823464d67d4ad64a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pracha=C5=99?= <jan.prachar@gmail.com>
Date: Mon, 25 Apr 2022 12:07:53 +0200
Subject: [PATCH] =?UTF-8?q?org=5Fscore:=20Zm=C3=ADnka,=20=C5=BEe=20je=20t?=
 =?UTF-8?q?=C5=99eba=20odevzdat=20experiment=C3=A1ln=C3=AD=20=C3=BAlohu?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mo/web/org_score.py             | 1 +
 mo/web/templates/org_score.html | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/mo/web/org_score.py b/mo/web/org_score.py
index cd07526d..887af742 100644
--- a/mo/web/org_score.py
+++ b/mo/web/org_score.py
@@ -277,6 +277,7 @@ def org_score(round_id: Optional[int] = None, hier_id: Optional[int] = None, ct_
             ctx=ctx,
             contest=contest, round=round, tasks=tasks,
             table=table, messages=messages, shared_places=score.shared_places,
+            need_exp = any(task.experiment for task in tasks),
             group_rounds=group_rounds,
             can_view_submits=ctx.rights.can_view_submits(),
             public=public,
diff --git a/mo/web/templates/org_score.html b/mo/web/templates/org_score.html
index 25c57592..5175736b 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>{% 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 %}. {% if shared_places %}{{ shared_places }}{% endif %}
 {% endif %}
 {% endif %}
 
-- 
GitLab