This commit is contained in:
Patrick Jentsch 2019-11-25 11:56:27 +01:00
parent eeed9268bb
commit 2fc092285c
2 changed files with 3 additions and 5 deletions

View File

@ -23,7 +23,7 @@ def create_app(config_name):
db.init_app(app)
login_manager.init_app(app)
mail.init_app(app)
socketio.init_app(app, message_qeue='redis://redis')
socketio.init_app(app, message_qeue='redis://redis:6379')
from . import events

View File

@ -41,8 +41,7 @@ def download_job_input(job_id, job_input_id):
abort(403)
dir = os.path.join(current_app.config['OPAQUE_STORAGE_DIRECTORY'],
job_input.dir)
return send_from_directory(as_attachment=True,
directory=dir,
return send_from_directory(as_attachment=True, directory=dir,
filename=job_input.filename)
@ -57,6 +56,5 @@ def download_job_result(job_id, job_result_id):
abort(403)
dir = os.path.join(current_app.config['OPAQUE_STORAGE_DIRECTORY'],
job_result.dir)
return send_from_directory(as_attachment=True,
directory=dir,
return send_from_directory(as_attachment=True, directory=dir,
filename=job_result.filename)