mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 15:15:38 -05:00
fix a method
This commit is contained in:
@@ -88,7 +88,7 @@ def fetch_sms_billing_for_all_services(start_date, end_date):
|
||||
sms_cost = chargeable_sms * FactBilling.rate
|
||||
|
||||
query = (
|
||||
db.session.query(
|
||||
select(
|
||||
Organization.name.label("organization_name"),
|
||||
Organization.id.label("organization_id"),
|
||||
Service.name.label("service_name"),
|
||||
@@ -127,7 +127,7 @@ def fetch_sms_billing_for_all_services(start_date, end_date):
|
||||
.order_by(Organization.name, Service.name)
|
||||
)
|
||||
|
||||
return query.all()
|
||||
return db.session.execute(query).all()
|
||||
|
||||
|
||||
def fetch_billing_totals_for_year(service_id, year):
|
||||
|
||||
Reference in New Issue
Block a user