mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
upgrade organization_dao to sqlalchemy 2.0
This commit is contained in:
@@ -15,7 +15,7 @@ def dao_get_organizations():
|
||||
|
||||
def dao_count_organizations_with_live_services():
|
||||
stmt = (
|
||||
select(func.count().distinct()).select_from(Organization)
|
||||
select(func.count(func.distinct(Organization.id)))
|
||||
.join(Organization.services)
|
||||
.filter(
|
||||
Service.active.is_(True),
|
||||
|
||||
Reference in New Issue
Block a user