blunt rename of org (#620)

This commit is contained in:
Steven Reilly
2023-07-12 12:09:44 -04:00
committed by GitHub
parent 5fe81bc040
commit 13d0e46b52
107 changed files with 1471 additions and 1471 deletions

View File

@@ -16,25 +16,25 @@ def performance():
start_date=(datetime.now(pytz.utc) - timedelta(days=7)).date(),
end_date=datetime.now(pytz.utc).date(),
)
stats['organisations_using_notify'] = sorted(
stats['organizations_using_notify'] = sorted(
[
{
'organisation_name': organisation_name or 'No organization',
'organization_name': organization_name or 'No organization',
'count_of_live_services': len(list(group)),
}
for organisation_name, group in groupby(
for organization_name, group in groupby(
stats['services_using_notify'],
itemgetter('organisation_name'),
itemgetter('organization_name'),
)
],
key=itemgetter('organisation_name'),
key=itemgetter('organization_name'),
)
stats['average_percentage_under_10_seconds'] = mean([
row['percentage_under_10_seconds']
for row in stats['processing_time']
] or [0])
stats['count_of_live_services_and_organisations'] = (
status_api_client.get_count_of_live_services_and_organisations()
stats['count_of_live_services_and_organizations'] = (
status_api_client.get_count_of_live_services_and_organizations()
)
return render_template(
'views/performance.html',