mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
convert other daos
This commit is contained in:
@@ -176,10 +176,14 @@ def dao_fetch_live_services_data():
|
|||||||
.subquery()
|
.subquery()
|
||||||
)
|
)
|
||||||
|
|
||||||
this_year_ft_billing = select(FactBilling).filter(
|
this_year_ft_billing = (
|
||||||
FactBilling.local_date >= year_start_date,
|
select(FactBilling)
|
||||||
FactBilling.local_date <= year_end_date,
|
.filter(
|
||||||
).subquery()
|
FactBilling.local_date >= year_start_date,
|
||||||
|
FactBilling.local_date <= year_end_date,
|
||||||
|
)
|
||||||
|
.subquery()
|
||||||
|
)
|
||||||
|
|
||||||
stmt = (
|
stmt = (
|
||||||
select(
|
select(
|
||||||
@@ -250,8 +254,6 @@ def dao_fetch_live_services_data():
|
|||||||
|
|
||||||
data = db.session.execute(stmt).scalars().all()
|
data = db.session.execute(stmt).scalars().all()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
for row in data:
|
for row in data:
|
||||||
existing_service = next(
|
existing_service = next(
|
||||||
|
|||||||
Reference in New Issue
Block a user