mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Remove where clause for notification_status
This commit is contained in:
@@ -444,11 +444,9 @@ def migrate_data_to_ft_billing(start_date, end_date):
|
|||||||
1 as notifications_sent
|
1 as notifications_sent
|
||||||
from public.notification_history n
|
from public.notification_history n
|
||||||
left join services s on s.id = n.service_id
|
left join services s on s.id = n.service_id
|
||||||
where n.notification_status!='technical-failure'
|
where n.key_type!='test'
|
||||||
and n.key_type!='test'
|
|
||||||
and n.notification_status in
|
and n.notification_status in
|
||||||
('sending', 'sent', 'delivered', 'temporary-failure', 'permanent-failure', 'failed')
|
('sending', 'sent', 'delivered', 'temporary-failure', 'permanent-failure', 'failed')
|
||||||
and n.notification_status!='created'
|
|
||||||
and n.created_at >= (date :start + time '00:00:00') at time zone 'Europe/London'
|
and n.created_at >= (date :start + time '00:00:00') at time zone 'Europe/London'
|
||||||
at time zone 'UTC'
|
at time zone 'UTC'
|
||||||
and n.created_at < (date :end + time '00:00:00') at time zone 'Europe/London' at time zone 'UTC'
|
and n.created_at < (date :end + time '00:00:00') at time zone 'Europe/London' at time zone 'UTC'
|
||||||
|
|||||||
Reference in New Issue
Block a user