mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 17:24:23 -04:00
Reflect change in argument name
`filename_or_fp` was changed to `path_or_file` here: https://github.com/pallets/flask/pull/3828/files#diff-1f51c8ded4d4ff7e13badab599ef22436c529c2b5f9c25dc6250c1f9fd985440R479
This commit is contained in:
@@ -584,7 +584,7 @@ def delete_contact_list(service_id, contact_list_id):
|
||||
def download_contact_list(service_id, contact_list_id):
|
||||
contact_list = ContactList.from_id(contact_list_id, service_id=service_id)
|
||||
return send_file(
|
||||
filename_or_fp=BytesIO(contact_list.contents.encode('utf-8')),
|
||||
path_or_file=BytesIO(contact_list.contents.encode('utf-8')),
|
||||
attachment_filename=contact_list.saved_file_name,
|
||||
as_attachment=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user