mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 23:08:25 -04:00
Add method to get jobs for a contact list
Because the API lets us query jobs by contact list now, let’s add the model and client layer code that will let us display them in the admin app.
This commit is contained in:
@@ -234,8 +234,8 @@ class ScheduledJobs(ImmediateJobs):
|
||||
class PaginatedJobs(PaginatedModelList, ImmediateJobs):
|
||||
client_method = job_api_client.get_page_of_jobs
|
||||
|
||||
def __init__(self, service_id, *, page=None):
|
||||
super().__init__(service_id, page=page)
|
||||
def __init__(self, service_id, *, contact_list_id=None, page=None):
|
||||
super().__init__(service_id, contact_list_id=contact_list_id, page=page)
|
||||
|
||||
|
||||
class PaginatedUploads(PaginatedModelList, ImmediateJobs):
|
||||
|
||||
Reference in New Issue
Block a user