mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Limit templates usage on dashboard to last 7 days
Previous the table of templates on the dashboard was for all time. This commit uses the `limit_days` parameter of the API endpoint to only show template usage from the last 7 days, aligning with the big numbers shown above.
This commit is contained in:
@@ -826,7 +826,7 @@ def mock_get_template_statistics(mocker, service_one, fake_uuid):
|
||||
"day": "2016-04-04"
|
||||
}
|
||||
|
||||
def _get_stats(service_id):
|
||||
def _get_stats(service_id, limit_days=None):
|
||||
return [data]
|
||||
|
||||
return mocker.patch(
|
||||
|
||||
Reference in New Issue
Block a user