From 2fc092285c6819730223a5d194be17607d63dcad Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Mon, 25 Nov 2019 11:56:27 +0100 Subject: [PATCH] Dinge --- app/__init__.py | 2 +- app/jobs/views.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 056fd474..4c060fb0 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -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 diff --git a/app/jobs/views.py b/app/jobs/views.py index 37a81a21..08fd825c 100644 --- a/app/jobs/views.py +++ b/app/jobs/views.py @@ -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)