mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
treat sent as delivered in detailed service api
this is for when we fetch the large blue numbers for viewing notifications for an entire service
This commit is contained in:
@@ -48,7 +48,7 @@ def create_zeroed_stats_dicts():
|
||||
|
||||
def _update_statuses_from_row(update_dict, row):
|
||||
update_dict['requested'] += row.count
|
||||
if row.status == 'delivered':
|
||||
if row.status in ('delivered', 'sent'):
|
||||
update_dict['delivered'] += row.count
|
||||
elif row.status in ('failed', 'technical-failure', 'temporary-failure', 'permanent-failure'):
|
||||
update_dict['failed'] += row.count
|
||||
|
||||
Reference in New Issue
Block a user