mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 19:59:18 -04:00
Stop passing in today_only for the get_service_statistics method.
We now only ever call it with False. To remove it from the api call will require a change in the API so will do that at another time.
This commit is contained in:
@@ -272,7 +272,6 @@ def get_notifications(service_id, message_type, status_override=None):
|
||||
message_type,
|
||||
service_api_client.get_service_statistics(
|
||||
service_id,
|
||||
today_only=False,
|
||||
limit_days=service_data_retention_days
|
||||
)
|
||||
)
|
||||
|
||||
@@ -43,10 +43,8 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
||||
"""
|
||||
return self.get('/service/{0}'.format(service_id))
|
||||
|
||||
def get_service_statistics(self, service_id, today_only, limit_days=None):
|
||||
return self.get('/service/{0}/statistics'.format(service_id), params={
|
||||
'today_only': today_only, 'limit_days': limit_days
|
||||
})['data']
|
||||
def get_service_statistics(self, service_id, limit_days=None):
|
||||
return self.get('/service/{0}/statistics'.format(service_id), params={'limit_days': limit_days})['data']
|
||||
|
||||
def get_services(self, params_dict=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user