From 556158012d2b8eda1b93798fc99ef01a42f33d84 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 10 Oct 2024 08:33:14 -0700 Subject: [PATCH] convert other daos --- app/dao/services_dao.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/dao/services_dao.py b/app/dao/services_dao.py index d65d57ddc..da237fcb2 100644 --- a/app/dao/services_dao.py +++ b/app/dao/services_dao.py @@ -176,10 +176,14 @@ def dao_fetch_live_services_data(): .subquery() ) - this_year_ft_billing = select(FactBilling).filter( - FactBilling.local_date >= year_start_date, - FactBilling.local_date <= year_end_date, - ).subquery() + this_year_ft_billing = ( + select(FactBilling) + .filter( + FactBilling.local_date >= year_start_date, + FactBilling.local_date <= year_end_date, + ) + .subquery() + ) stmt = ( select( @@ -250,8 +254,6 @@ def dao_fetch_live_services_data(): data = db.session.execute(stmt).scalars().all() - - results = [] for row in data: existing_service = next(