|
@ -184,6 +184,8 @@ class KorekturyView(generic.TemplateView): |
|
|
zasluhy[k.autor]+=1 |
|
|
zasluhy[k.autor]+=1 |
|
|
else: |
|
|
else: |
|
|
zasluhy[k.autor]=1 |
|
|
zasluhy[k.autor]=1 |
|
|
|
|
|
zasluhy = [{'autor':jmeno, 'pocet':pocet} for (jmeno,pocet) in zasluhy.items()] |
|
|
|
|
|
zasluhy.sort(key=lambda z:z['pocet'],reverse=True) |
|
|
|
|
|
|
|
|
strany = set(o.strana for o in opravy) |
|
|
strany = set(o.strana for o in opravy) |
|
|
opravy_na_stranu = [{'strana': s, 'op_id': opravy.filter(strana=s)} for s in strany] |
|
|
opravy_na_stranu = [{'strana': s, 'op_id': opravy.filter(strana=s)} for s in strany] |
|
|