Skip to content
Snippets Groups Projects

Generování protokolů a zpracování scanů

Merged Martin Mareš requested to merge mj/protokoly into devel
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -113,10 +113,12 @@ def send_task_paper(paper: db.Paper, orig: bool = False) -> Response:
def send_job_result(job: db.Job) -> Response:
assert job.out_file is not None
file = mo.jobs.job_file_path(job.out_file)
file = job.file_path(job.out_file)
if file.endswith('.zip'):
type = 'application/zip'
elif file.endswith('.pdf'):
type = 'application/pdf'
else:
type = 'application/binary'
Loading