mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Fix the email billing data when there is no results.
This commit is contained in:
@@ -56,8 +56,10 @@ def email_billing_data_query(service_id, start_date, end_date):
|
|||||||
NotificationHistory.international,
|
NotificationHistory.international,
|
||||||
NotificationHistory.phone_prefix
|
NotificationHistory.phone_prefix
|
||||||
).first()
|
).first()
|
||||||
|
if not result:
|
||||||
return tuple(result) + (0,)
|
return 0, EMAIL_TYPE, None, False, None, 0
|
||||||
|
else:
|
||||||
|
return tuple(result) + (0,)
|
||||||
|
|
||||||
|
|
||||||
def sms_billing_data_query(rate, service_id, start_date, end_date):
|
def sms_billing_data_query(rate, service_id, start_date, end_date):
|
||||||
|
|||||||
Reference in New Issue
Block a user