Create platform-stats blueprint

Created a platform-stats blueprint and moved the new platform stats
endpoint to the new blueprint (it was previously in the service
blueprint). Since the original platform stats route and the new platform
stats route are now in different blueprints, their view functions can
have the same name without any issues.
This commit is contained in:
Katie Smith
2018-06-28 08:39:25 +01:00
parent 5381491aae
commit 4b030b1583
9 changed files with 63 additions and 46 deletions

View File

@@ -612,7 +612,7 @@ def guess_notification_type(search_term):
@statsd(namespace='dao')
def fetch_new_aggregate_stats_by_date_range_for_all_services(start_date, end_date):
def fetch_aggregate_stats_by_date_range_for_all_services(start_date, end_date):
start_date = get_london_midnight_in_utc(start_date)
end_date = get_london_midnight_in_utc(end_date + timedelta(days=1))
table = NotificationHistory