From 2b1c5e4e6ed1a11b354510b3d44dd9ec34fdafd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 6 Feb 2023 23:26:11 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20maximum=20bod=C5=AF=20pro=20hodnocen?= =?UTF-8?q?=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/models/odevzdavatko.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/models/odevzdavatko.py b/seminar/models/odevzdavatko.py index ac6c097c..0fad97f8 100644 --- a/seminar/models/odevzdavatko.py +++ b/seminar/models/odevzdavatko.py @@ -177,7 +177,7 @@ class Hodnoceni(bm.SeminarModelBase): @property def body_neprepocitane_max(self): - if not isinstance(self.problem, am.Uloha): + if not isinstance(self.problem.get_real_instance(), am.Uloha): return None return self.problem.uloha.max_body