mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-23 18:24:13 -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.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):
|
||||
|
||||
Reference in New Issue
Block a user