mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 02:24:20 +00:00
Dinge
This commit is contained in:
parent
eeed9268bb
commit
2fc092285c
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user