Compare commits
2 commits
de0f0d3040
...
136aca5b83
Author | SHA1 | Date | |
---|---|---|---|
136aca5b83 | |||
1624fdecc2 |
2 changed files with 3 additions and 6 deletions
|
@ -58,7 +58,8 @@ Zobrazit:
|
||||||
|
|
||||||
function updatuj_pocty_stavu() {
|
function updatuj_pocty_stavu() {
|
||||||
const pocty_stavu = {};
|
const pocty_stavu = {};
|
||||||
for (let oprava of Object.values(opravy)) {
|
for (const stav of Object.keys(spany_s_pocty_stavu)) pocty_stavu[stav] = 0;
|
||||||
|
for (const oprava of Object.values(opravy)) {
|
||||||
if (!(oprava.status in pocty_stavu)) pocty_stavu[oprava.status] = 0;
|
if (!(oprava.status in pocty_stavu)) pocty_stavu[oprava.status] = 0;
|
||||||
pocty_stavu[oprava.status] += 1;
|
pocty_stavu[oprava.status] += 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
from django.shortcuts import get_object_or_404, render
|
|
||||||
from django.views import generic
|
from django.views import generic
|
||||||
from django.conf import settings
|
|
||||||
from django.http import HttpResponseForbidden
|
|
||||||
from django.db.models import Count,Q
|
from django.db.models import Count,Q
|
||||||
|
|
||||||
from .utils import send_email_notification_komentar
|
from .models import Oprava, KorekturovanePDF, KorekturaTag
|
||||||
from .models import Oprava, Komentar, KorekturovanePDF, Organizator, KorekturaTag
|
|
||||||
|
|
||||||
class KorekturyListView(generic.ListView):
|
class KorekturyListView(generic.ListView):
|
||||||
model = KorekturovanePDF
|
model = KorekturovanePDF
|
||||||
|
|
Loading…
Reference in a new issue