mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 15:15:38 -05:00
convert other daos
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user