Browse Source

Merge branch 'stvrzenky' into develop

zadavatko_problemu
Jonas Havelka 2 years ago
parent
commit
122bfc7436
  1. 3
      soustredeni/views.py

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

Loading…
Cancel
Save