Fix syntax
This commit is contained in:
parent
e5553126bc
commit
b2539d6a24
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue