mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -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:
@@ -12,6 +12,7 @@ from flask import (
|
||||
request,
|
||||
stream_with_context,
|
||||
url_for,
|
||||
current_app
|
||||
)
|
||||
from flask_login import login_required
|
||||
from notifications_python_client.errors import APIError
|
||||
@@ -178,7 +179,8 @@ def download_notifications_csv(service_id):
|
||||
page=request.args.get('page', 1),
|
||||
page_size=5000,
|
||||
format_for_csv=True,
|
||||
template_type=filter_args.get('message_type')
|
||||
template_type=filter_args.get('message_type'),
|
||||
limit_days=current_app.config['ACTIVITY_STATS_LIMIT_DAYS'],
|
||||
)
|
||||
),
|
||||
mimetype='text/csv',
|
||||
|
||||
Reference in New Issue
Block a user