From ea86fd9ae66c3dade605f672aab0a92e577444c6 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Sun, 5 Mar 2023 00:27:30 +0000 Subject: [PATCH] Updated parameter for new library version --- ref-test/app/admin/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref-test/app/admin/views.py b/ref-test/app/admin/views.py index 2f6e8e1..50fc804 100644 --- a/ref-test/app/admin/views.py +++ b/ref-test/app/admin/views.py @@ -280,7 +280,7 @@ def _download(id:str): return abort(500) if not dataset: return abort(404) data_path = path.abspath(dataset.get_file()) - return send_file(data_path, as_attachment=True, attachment_filename=f'{dataset.get_name()}.json') + return send_file(data_path, as_attachment=True, download_name=f'{dataset.get_name()}.json') @admin.route('/tests//', methods=['GET']) @admin.route('/tests/', methods=['GET'])