From b2539d6a24ee36e47aed84e77c509500580cffe9 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Tue, 27 Oct 2020 22:35:36 +0100 Subject: [PATCH] Fix syntax --- seminar/views/odevzdavatko.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/views/odevzdavatko.py b/seminar/views/odevzdavatko.py index bf4ab0fa..137f1fc0 100644 --- a/seminar/views/odevzdavatko.py +++ b/seminar/views/odevzdavatko.py @@ -48,8 +48,7 @@ class TabulkaOdevzdanychReseniView(TemplateView): reseni_k_tomuto_problemu = m.Reseni.objects.filter( resitele__in=[resitel], # Snad funguje i takhle hodnoceni__problem__in=[problem], # ditto - ) - .order_by('-cas_doruceni') + ).order_by('-cas_doruceni') pocet_reseni = reseni_k_tomuto_problemu.count() nejnovejsi = reseni_k_tomuto_problemu.first().cas_doruceni pocet_bodu = max( @@ -65,6 +64,7 @@ class TabulkaOdevzdanychReseniView(TemplateView): posledni_odevzdani=nejnovejsi, body=pocet_bodu, ) + ) return ctx class ReseniProblemuView(ListView):