mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Change activity to view to request 7 days data.
Cleaned up filters a bit so that if you want both templates email and sms is passed. Added mock assertion to test.
This commit is contained in:
@@ -27,7 +27,8 @@ class NotificationApiClient(BaseAPIClient):
|
||||
template_type=None,
|
||||
status=None,
|
||||
page=None,
|
||||
page_size=None):
|
||||
page_size=None,
|
||||
limit_days=None):
|
||||
params = {}
|
||||
if page is not None:
|
||||
params['page'] = page
|
||||
@@ -43,6 +44,9 @@ class NotificationApiClient(BaseAPIClient):
|
||||
params=params
|
||||
)
|
||||
else:
|
||||
if limit_days is not None:
|
||||
params['limit_days'] = limit_days
|
||||
|
||||
return self.get(
|
||||
url='/service/{}/notifications'.format(service_id),
|
||||
params=params
|
||||
|
||||
Reference in New Issue
Block a user