mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 21:48:49 -04: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
|
sms_cost = chargeable_sms * FactBilling.rate
|
||||||
|
|
||||||
query = (
|
query = (
|
||||||
db.session.query(
|
select(
|
||||||
Organization.name.label("organization_name"),
|
Organization.name.label("organization_name"),
|
||||||
Organization.id.label("organization_id"),
|
Organization.id.label("organization_id"),
|
||||||
Service.name.label("service_name"),
|
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)
|
.order_by(Organization.name, Service.name)
|
||||||
)
|
)
|
||||||
|
|
||||||
return query.all()
|
return db.session.execute(query).all()
|
||||||
|
|
||||||
|
|
||||||
def fetch_billing_totals_for_year(service_id, year):
|
def fetch_billing_totals_for_year(service_id, year):
|
||||||
|
|||||||
Reference in New Issue
Block a user