|
|
@ -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' |
|
|
|