odmeny_podle_petra #19

Merged
ledoian merged 2 commits from odmeny_podle_petra into master 2023-01-02 21:38:46 +01:00
Showing only changes of commit ea7075f707 - Show all commits

View file

@ -450,9 +450,9 @@ class OdmenyView(generic.TemplateView):
frombody = body_resitelu(resitele=resitele, jen_verejne=False, do=from_deadline)
tobody = body_resitelu(resitele=resitele, jen_verejne=False, do=to_deadline)
outlist = []
for (aid, tbody) in tobody.items():
fbody = frombody.get(aid,0)
resitel = Resitel.objects.get(pk=aid)
for resitel in resitele:
fbody = frombody.get(resitel.id, 0)
tbody = tobody.get(resitel.id, 0)
ftitul = resitel.get_titul(fbody)
ttitul = resitel.get_titul(tbody)
if ftitul != ttitul: