mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Only return the usage data for live services.
The list of trail mode services is only for platform admins, therefore the usage isn't needed for that page.
This commit is contained in:
@@ -31,6 +31,13 @@ def dao_get_organisation_services(organisation_id):
|
||||
).one().services
|
||||
|
||||
|
||||
def dao_get_organisation_live_services(organisation_id):
|
||||
return Service.query.filter_by(
|
||||
organisation_id=organisation_id,
|
||||
restricted=False
|
||||
).all()
|
||||
|
||||
|
||||
def dao_get_organisation_by_id(organisation_id):
|
||||
return Organisation.query.filter_by(id=organisation_id).one()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user