mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 13:41:38 -04:00
clean up
This commit is contained in:
@@ -32,7 +32,15 @@ class JobApiClient(NotifyAdminAPIClient):
|
||||
|
||||
return job
|
||||
|
||||
def get_jobs(self, service_id, *, limit_days=None, statuses=None, page=1, use_processing_time=False):
|
||||
def get_jobs(
|
||||
self,
|
||||
service_id,
|
||||
*,
|
||||
limit_days=None,
|
||||
statuses=None,
|
||||
page=1,
|
||||
use_processing_time=False,
|
||||
):
|
||||
params = {"page": page}
|
||||
if limit_days is not None:
|
||||
params["limit_days"] = limit_days
|
||||
@@ -63,7 +71,15 @@ class JobApiClient(NotifyAdminAPIClient):
|
||||
if job["job_status"] != JobStatus.CANCELLED
|
||||
)
|
||||
|
||||
def get_page_of_jobs(self, service_id, *, page, statuses=None, limit_days=None, use_processing_time=False):
|
||||
def get_page_of_jobs(
|
||||
self,
|
||||
service_id,
|
||||
*,
|
||||
page,
|
||||
statuses=None,
|
||||
limit_days=None,
|
||||
use_processing_time=False,
|
||||
):
|
||||
return self.get_jobs(
|
||||
service_id,
|
||||
statuses=statuses or self.NON_SCHEDULED_JOB_STATUSES,
|
||||
|
||||
Reference in New Issue
Block a user