This commit is contained in:
Tomas "Jethro" Pokorny 2015-12-23 13:22:35 +01:00
parent 2f3dffd76c
commit ada4d055eb

View file

@ -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