mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Remove list of services from platform admin index
We have two new pages for live and trial services that: - are faster loading - are now linked to So the list of services doesn’t need to be on the platform admin index page any more.
This commit is contained in:
@@ -33,11 +33,7 @@ def platform_admin():
|
||||
'views/platform-admin/index.html',
|
||||
include_from_test_key=form.include_from_test_key.data,
|
||||
form=form,
|
||||
**get_statistics(sorted(
|
||||
services,
|
||||
key=lambda service: (service['active'], sum_service_usage(service), service['created_at']),
|
||||
reverse=True
|
||||
))
|
||||
global_stats=create_global_stats(services),
|
||||
)
|
||||
|
||||
|
||||
@@ -79,18 +75,6 @@ def sum_service_usage(service):
|
||||
return total
|
||||
|
||||
|
||||
def get_statistics(services):
|
||||
return {
|
||||
'global_stats': create_global_stats(services),
|
||||
'live_services': format_stats_by_service(
|
||||
service for service in services if not service['restricted']
|
||||
),
|
||||
'trial_mode_services': format_stats_by_service(
|
||||
service for service in services if service['restricted']
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
def filter_and_sort_services(services, trial_mode_services=False):
|
||||
return (
|
||||
service for service in sorted(
|
||||
|
||||
Reference in New Issue
Block a user