Updated parameter for new library version

This commit is contained in:
Vivek Santayana 2023-03-05 00:27:30 +00:00
parent 76d60546e2
commit ea86fd9ae6

View File

@ -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/<string:filter>/', methods=['GET'])
@admin.route('/tests/', methods=['GET'])