From 5fb3e9f39e1d33fb403c74da8604fcd4b208bf06 Mon Sep 17 00:00:00 2001 From: Anet Date: Wed, 3 Jun 2020 23:33:12 +0200 Subject: [PATCH] =?UTF-8?q?Zapomenut=C3=BD=20import.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/export.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seminar/export.py b/seminar/export.py index 3e4372fe..b2339786 100644 --- a/seminar/export.py +++ b/seminar/export.py @@ -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)