convert more queries

This commit is contained in:
Kenneth Kehl
2024-10-09 14:12:51 -07:00
parent 2c870d20f4
commit f771c30430

View File

@@ -220,7 +220,7 @@ def dao_fetch_service_by_id_with_api_keys(service_id, only_active=False):
select(Service).filter_by(id=service_id).options(joinedload(Service.api_keys))
)
if only_active:
stmt = stmt.filter(Service.working)
stmt = stmt.filter(Service.active)
return db.session.execute(stmt).scalars().unique().one()