mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
add get_active_services method
* all current invocations of get_services now call get_active_services EXCEPT for platform admin page (where we want to see inactive services * cleaned up parameter names and unpacking (since *params is unhelpful) * fixed incorrect kwarg name in conftest
This commit is contained in:
@@ -13,6 +13,7 @@ from app.statistics_utils import get_formatted_percentage
|
||||
@login_required
|
||||
@user_has_permissions(admin_override=True)
|
||||
def platform_admin():
|
||||
# specifically DO get inactive services
|
||||
services = service_api_client.get_services({'detailed': True})['data']
|
||||
return render_template(
|
||||
'views/platform-admin.html',
|
||||
|
||||
Reference in New Issue
Block a user