From add5b8e295842d931b87d95c6988a2dc6be9687c Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Sun, 12 Sep 2021 11:50:00 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20pr=C3=A1zdn=C3=A1=20v=C3=BDsledkovka?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/views/views_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/views/views_all.py b/seminar/views/views_all.py index 7751f628..57dd556e 100644 --- a/seminar/views/views_all.py +++ b/seminar/views/views_all.py @@ -501,7 +501,7 @@ def ZadaniAktualniVysledkovkaView(request): vysledkovka = vysledkovka_rocniku(rocnik) cisla = cisla_rocniku(rocnik) # kdyz neni verejna vysledkovka, tak zobraz starou - if not vysledkovka: + if not vysledkovka or not any(map(lambda it: it.verejna_vysledkovka, cisla)): try: minuly_rocnik = Rocnik.objects.get( prvni_rok=(rocnik.prvni_rok-1))