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'])