Generování stvrzenek nedostávalo TeXovský soubor do tempu.
This commit is contained in:
		
							parent
							
								
									f68e452827
								
							
						
					
					
						commit
						6ca79ac342
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -66,8 +66,9 @@ def soustredeniStvrzenkyView(request, soustredeni): | ||||||
| 	static = Path(settings.STATIC_ROOT) | 	static = Path(settings.STATIC_ROOT) | ||||||
| 	tempdir = Path(tempfile.mkdtemp()) | 	tempdir = Path(tempfile.mkdtemp()) | ||||||
| 	shutil.copy(static / 'images/logomm.pdf', tempdir) | 	shutil.copy(static / 'images/logomm.pdf', tempdir) | ||||||
|  | 	shutil.copy(static / 'seminar/stvrzenky.tex', tempdir) | ||||||
| 	subprocess.run( | 	subprocess.run( | ||||||
| 			['pdfcsplain', static / 'seminar/stvrzenky.tex'], | 			['pdfcsplain', 'stvrzenky.tex'], | ||||||
| 			cwd=tempdir, | 			cwd=tempdir, | ||||||
| 			encoding='utf-8', | 			encoding='utf-8', | ||||||
| 			input=f'{soustredeni.datum_zacatku.strftime("%-d.~%-m.~%Y")} -- {soustredeni.datum_konce.strftime("%-d.~%-m.~%Y")}\n{soustredeni.misto}\n' | 			input=f'{soustredeni.datum_zacatku.strftime("%-d.~%-m.~%Y")} -- {soustredeni.datum_konce.strftime("%-d.~%-m.~%Y")}\n{soustredeni.misto}\n' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue