mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Add the download activity link for notifications.
This works locally for a long running request and a large number of messages. However I suspect that nginx may be timing out the request. I'd like to try this on staging.
This commit is contained in:
11
app/utils.py
11
app/utils.py
@@ -149,13 +149,12 @@ def generate_notifications_csv(**kwargs):
|
||||
]
|
||||
else:
|
||||
values = [
|
||||
notification['to'],
|
||||
notification['template']['name'],
|
||||
notification['template']['template_type'],
|
||||
notification.get('job_name', None),
|
||||
notification['recipient'],
|
||||
notification['template_name'],
|
||||
notification['template_type'],
|
||||
notification['job_name'],
|
||||
notification['status'],
|
||||
notification['created_at'],
|
||||
notification['updated_at']
|
||||
notification['created_at']
|
||||
]
|
||||
yield Spreadsheet.from_rows([map(str, values)]).as_csv_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user