Zapomenutý import.
This commit is contained in:
parent
5afc52afb5
commit
5fb3e9f39e
1 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ from django.utils.encoding import force_text
|
|||
from .models import Problem, Cislo, Reseni, Nastaveni, Rocnik, Soustredeni
|
||||
#from .models import VysledkyZaCislo, VysledkyKCisluZaRocnik, VysledkyKCisluOdjakziva
|
||||
from .ovvpfile import OvvpFile
|
||||
from seminar import views
|
||||
|
||||
class ExportIndexView(generic.View):
|
||||
def get(self, request):
|
||||
|
@ -76,8 +77,8 @@ class ExportRocnikView(generic.View):
|
|||
rocnik = get_object_or_404(Rocnik, prvni_rok=pr, exportovat=True)
|
||||
cislo = rocnik.posledni_zverejnena_vysledkovka_cislo()
|
||||
resitele = views.aktivniResitele(cislo.rocnik.rocnik, cislo.poradi, True)
|
||||
slovnik_body = secti_body_za_rocnik(cislo, resitele)
|
||||
_, setrizeni_resitele, setrizene_body = setrid_resitele_a_body(slovnik_body)
|
||||
slovnik_body = views.secti_body_za_rocnik(cislo, resitele)
|
||||
_, setrizeni_resitele, setrizene_body = views.setrid_resitele_a_body(slovnik_body)
|
||||
|
||||
of = default_ovvpfile('MaM.rocnik', rocnik)
|
||||
of.headers['comment'] = u'MaM-Web export aktivnich resitelu rocniku {rocnik} do cisla {cislo}'.format(rocnik=rocnik, cislo=cislo)
|
||||
|
|
Loading…
Reference in a new issue