mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-25 00:33:41 -04:00
upgrade org and template dao to sqlalchemy 2.0
This commit is contained in:
@@ -22,9 +22,9 @@ def dao_count_organizations_with_live_services():
|
|||||||
Service.restricted.is_(False),
|
Service.restricted.is_(False),
|
||||||
Service.count_as_live.is_(True),
|
Service.count_as_live.is_(True),
|
||||||
)
|
)
|
||||||
.distinct()
|
|
||||||
)
|
)
|
||||||
return db.session.execute(stmt).scalar() or 0
|
return db.session.execute(stmt).distinct().scalar() or 0
|
||||||
|
|
||||||
|
|
||||||
def dao_get_organization_services(organization_id):
|
def dao_get_organization_services(organization_id):
|
||||||
|
|||||||
Reference in New Issue
Block a user