From 65129e6648a7ff46f474d804299b302a9885ca98 Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Tue, 25 May 2021 19:34:59 +0200 Subject: [PATCH] =?UTF-8?q?aesop=20m=C4=9Bl=20=C5=A1patn=C3=BD=20import=20?= =?UTF-8?q?a=20n=C3=A1zev=20prom=C4=9Bnn=C3=A9?= 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 34dcad9a..8445bda9 100644 --- a/seminar/export.py +++ b/seminar/export.py @@ -9,6 +9,7 @@ from .models import Problem, Cislo, Reseni, Nastaveni, Rocnik, Soustredeni #from .models import VysledkyZaCislo, VysledkyKCisluZaRocnik, VysledkyKCisluOdjakziva from .ovvpfile import OvvpFile from seminar import views +from seminar.views import vysledkovka from seminar.utils import aktivniResitele class ExportIndexView(generic.View): @@ -78,8 +79,8 @@ class ExportRocnikView(generic.View): rocnik = get_object_or_404(Rocnik, prvni_rok=pr, exportovat=True) cislo = rocnik.posledni_zverejnena_vysledkovka_cislo() resitele = aktivniResitele(cislo, True) - slovnik_body = views.secti_body_za_rocnik(cislo, resitele) - _, setrizeni_resitele, setrizene_body = views.setrid_resitele_a_body(slovnik_body) + slovnik_body = vysledkovka.secti_body_za_rocnik(cislo, resitele, False) + _, setrizeni_resitele, body = vysledkovka.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)