mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
fix a method
This commit is contained in:
@@ -31,7 +31,7 @@ def fetch_sms_free_allowance_remainder_until_date(end_date):
|
|||||||
)
|
)
|
||||||
|
|
||||||
query = (
|
query = (
|
||||||
db.session.query(
|
select(
|
||||||
AnnualBilling.service_id.label("service_id"),
|
AnnualBilling.service_id.label("service_id"),
|
||||||
AnnualBilling.free_sms_fragment_limit,
|
AnnualBilling.free_sms_fragment_limit,
|
||||||
billable_units.label("billable_units"),
|
billable_units.label("billable_units"),
|
||||||
@@ -40,6 +40,7 @@ def fetch_sms_free_allowance_remainder_until_date(end_date):
|
|||||||
0,
|
0,
|
||||||
).label("sms_remainder"),
|
).label("sms_remainder"),
|
||||||
)
|
)
|
||||||
|
.select_from(AnnualBilling)
|
||||||
.outerjoin(
|
.outerjoin(
|
||||||
# if there are no ft_billing rows for a service we still want to return the annual billing so we can use the
|
# if there are no ft_billing rows for a service we still want to return the annual billing so we can use the
|
||||||
# free_sms_fragment_limit)
|
# free_sms_fragment_limit)
|
||||||
|
|||||||
Reference in New Issue
Block a user