update deprecated parameter name

This commit is contained in:
Sébastien Thuret 2022-04-07 15:56:57 +02:00
parent 0bbcc2ae83
commit 51768e2d82
No known key found for this signature in database
GPG key ID: 230B93BBA62CB043

View file

@ -681,7 +681,7 @@ def create_app(args):
download_filename.pop(0)
download_filename = '.'.join(download_filename)
return send_file(return_data, as_attachment=True, attachment_filename=download_filename)
return send_file(return_data, as_attachment=True, download_name=download_filename)
@app.post("/detect")
@access_check