mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Split platform admin page into live and trial mode
It sucks having to scroll down the massive list of services just to see which ones are live.
This commit is contained in:
@@ -25,7 +25,12 @@ def platform_admin():
|
||||
def get_statistics(services):
|
||||
return {
|
||||
'global_stats': create_global_stats(services),
|
||||
'service_stats': format_stats_by_service(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']
|
||||
]),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user