mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Limit jobs sent from contact list by data retention
On the uploads page we only show jobs which are within a service’s data retention. This commit does the same for when we’re listing the jobs for a contact list. This matches the UI, which says a contact list has been ‘used `<count_of_jobs>` in the last <data_retention> days’
This commit is contained in:
@@ -517,7 +517,10 @@ def contact_list(service_id, contact_list_id):
|
||||
return render_template(
|
||||
'views/uploads/contact-list/contact-list.html',
|
||||
contact_list=contact_list,
|
||||
jobs=contact_list.get_jobs(page=1),
|
||||
jobs=contact_list.get_jobs(
|
||||
page=1,
|
||||
limit_days=current_service.get_days_of_retention(contact_list.template_type),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user