mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
upgrade organization_dao to sqlalchemy 2.0
This commit is contained in:
@@ -23,7 +23,8 @@ def dao_count_organizations_with_live_services():
|
|||||||
Service.count_as_live.is_(True),
|
Service.count_as_live.is_(True),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return db.session.execute(stmt).distinct().scalar() or 0
|
# TODO Need distinct here?
|
||||||
|
return db.session.execute(stmt).scalar() or 0
|
||||||
|
|
||||||
|
|
||||||
def dao_get_organization_services(organization_id):
|
def dao_get_organization_services(organization_id):
|
||||||
|
|||||||
Reference in New Issue
Block a user