From ada4d055eb0675799ecfc234f9b00465e6034d05 Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Wed, 23 Dec 2015 13:22:35 +0100 Subject: [PATCH] Bugfix. --- korektury/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korektury/views.py b/korektury/views.py index 2003cb39..af9d78be 100644 --- a/korektury/views.py +++ b/korektury/views.py @@ -131,7 +131,7 @@ class KorekturyView(generic.TemplateView): zasluhy[o.autor]=1 o.komentare = o.komentar_set.all() for k in o.komentare: - if o.autor in zasluhy: + if k.autor in zasluhy: zasluhy[k.autor]+=1 else: zasluhy[k.autor]=1