From 40ff981b7935d80eb3565314baaf6b236b12e8ce Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 8 Oct 2024 15:27:20 -0700 Subject: [PATCH] fix another --- app/dao/services_dao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dao/services_dao.py b/app/dao/services_dao.py index 9fdae8636..139e7c9a4 100644 --- a/app/dao/services_dao.py +++ b/app/dao/services_dao.py @@ -71,7 +71,7 @@ def get_services_by_partial_name(service_name): def dao_count_live_services(): - stmt = select(Service).where( + stmt = select(func.count()).select_from(Service).where( Service.active, Service.count_as_live, Service.restricted == False # noqa ) result = db.session.execute(stmt)