fix: řazení řešitelů v odměnách podle příjmení
This commit is contained in:
parent
e10a8e0b6d
commit
ea7075f707
1 changed files with 3 additions and 3 deletions
|
@ -450,9 +450,9 @@ class OdmenyView(generic.TemplateView):
|
||||||
frombody = body_resitelu(resitele=resitele, jen_verejne=False, do=from_deadline)
|
frombody = body_resitelu(resitele=resitele, jen_verejne=False, do=from_deadline)
|
||||||
tobody = body_resitelu(resitele=resitele, jen_verejne=False, do=to_deadline)
|
tobody = body_resitelu(resitele=resitele, jen_verejne=False, do=to_deadline)
|
||||||
outlist = []
|
outlist = []
|
||||||
for (aid, tbody) in tobody.items():
|
for resitel in resitele:
|
||||||
fbody = frombody.get(aid,0)
|
fbody = frombody.get(resitel.id, 0)
|
||||||
resitel = Resitel.objects.get(pk=aid)
|
tbody = tobody.get(resitel.id, 0)
|
||||||
ftitul = resitel.get_titul(fbody)
|
ftitul = resitel.get_titul(fbody)
|
||||||
ttitul = resitel.get_titul(tbody)
|
ttitul = resitel.get_titul(tbody)
|
||||||
if ftitul != ttitul:
|
if ftitul != ttitul:
|
||||||
|
|
Loading…
Reference in a new issue