mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 16:23:44 -04:00
notify-api-332 rename organisation
This commit is contained in:
@@ -8,7 +8,7 @@ from app.dao.fact_notification_status_dao import (
|
||||
from app.dao.fact_processing_time_dao import (
|
||||
get_processing_time_percentage_for_date_range,
|
||||
)
|
||||
from app.dao.services_dao import get_live_services_with_organisation
|
||||
from app.dao.services_dao import get_live_services_with_organization
|
||||
from app.errors import register_errors
|
||||
from app.performance_dashboard.performance_dashboard_schema import (
|
||||
performance_dashboard_request,
|
||||
@@ -37,7 +37,7 @@ def get_performance_dashboard():
|
||||
total_notifications, emails, sms = transform_results_into_totals(total_for_all_time)
|
||||
totals_for_date_range = get_total_notifications_for_date_range(start_date=start_date, end_date=end_date)
|
||||
processing_time_results = get_processing_time_percentage_for_date_range(start_date=start_date, end_date=end_date)
|
||||
services = get_live_services_with_organisation()
|
||||
services = get_live_services_with_organization()
|
||||
stats = {
|
||||
"total_notifications": total_notifications,
|
||||
"email_notifications": emails,
|
||||
@@ -82,6 +82,6 @@ def transform_services_to_json(services_results):
|
||||
j = []
|
||||
for x in services_results:
|
||||
j.append({"service_id": x.service_id, "service_name": x.service_name,
|
||||
"organisation_id": x.organisation_id, "organisation_name": x.organisation_name}
|
||||
"organization_id": x.organization_id, "organization_name": x.organization_name}
|
||||
)
|
||||
return j
|
||||
|
||||
Reference in New Issue
Block a user