Skip to content
Snippets Groups Projects

WIP: Zárodek uživatelské části webu a submitování

Compare and Show latest version
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -85,7 +85,10 @@ def send_job_result(job: db.Job) -> Response:
type = 'application/binary'
if os.path.isfile(file):
return send_file(file, mimetype=type)
return send_file(file,
mimetype=type,
as_attachment=True,
attachment_filename=job.out_file)
else:
logger.error(f'Soubor {file} je výsledkem jobu, ale ve FS neexistuje')
raise werkzeug.exceptions.NotFound()
Loading