mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Return count of live services on organisations too
This makes it consistent, so the admin app can always rely on that property being available.
This commit is contained in:
@@ -516,10 +516,7 @@ def get_orgs_and_services(user):
|
||||
for service in org.services
|
||||
if service.active and service in user.services
|
||||
],
|
||||
'count_of_live_services': len([
|
||||
service for service in org.services
|
||||
if service.active and not service.restricted
|
||||
]),
|
||||
'count_of_live_services': len(org.live_services),
|
||||
}
|
||||
for org in user.organisations if org.active
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user