mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
Fix the email billing data when there is no results.
This commit is contained in:
@@ -56,7 +56,9 @@ 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 0, EMAIL_TYPE, None, False, None, 0
|
||||||
|
else:
|
||||||
return tuple(result) + (0,)
|
return tuple(result) + (0,)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user