mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Updated frontend call to include local timezone
This commit is contained in:
@@ -45,13 +45,13 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
||||
)["data"]
|
||||
|
||||
def get_service_notification_statistics_by_day(
|
||||
self, service_id, start_date=None, days=None
|
||||
self, service_id, start_date=None, days=None, timezone="UTC"
|
||||
):
|
||||
if start_date is None:
|
||||
start_date = datetime.now().strftime("%Y-%m-%d")
|
||||
|
||||
return self.get(
|
||||
"/service/{0}/statistics/{1}/{2}".format(service_id, start_date, days),
|
||||
"/service/{0}/statistics/{1}/{2}?timezone={3}".format(service_id, start_date, days, timezone),
|
||||
)["data"]
|
||||
|
||||
def get_user_service_notification_statistics_by_day(
|
||||
|
||||
Reference in New Issue
Block a user