From 6ca79ac342729ad59773db86f291d25321073e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Thu, 13 Oct 2022 23:30:23 +0200 Subject: [PATCH] =?UTF-8?q?Generov=C3=A1n=C3=AD=20stvrzenek=20nedost=C3=A1?= =?UTF-8?q?valo=20TeXovsk=C3=BD=20soubor=20do=20tempu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soustredeni/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/soustredeni/views.py b/soustredeni/views.py index a165892b..54c34fbe 100644 --- a/soustredeni/views.py +++ b/soustredeni/views.py @@ -66,8 +66,9 @@ def soustredeniStvrzenkyView(request, soustredeni): static = Path(settings.STATIC_ROOT) tempdir = Path(tempfile.mkdtemp()) shutil.copy(static / 'images/logomm.pdf', tempdir) + shutil.copy(static / 'seminar/stvrzenky.tex', tempdir) subprocess.run( - ['pdfcsplain', static / 'seminar/stvrzenky.tex'], + ['pdfcsplain', 'stvrzenky.tex'], cwd=tempdir, encoding='utf-8', input=f'{soustredeni.datum_zacatku.strftime("%-d.~%-m.~%Y")} -- {soustredeni.datum_konce.strftime("%-d.~%-m.~%Y")}\n{soustredeni.misto}\n'