mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -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.phone_prefix
|
||||
).first()
|
||||
|
||||
return tuple(result) + (0,)
|
||||
if not result:
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user