From 0e1f6f31e4fc7a046b9a3d706c30802c136ec00d Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 9 Sep 2020 11:12:06 +0100 Subject: [PATCH] Use constant for notification type Co-authored-by: Katie Smith --- app/dao/notifications_dao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dao/notifications_dao.py b/app/dao/notifications_dao.py index ae9c6e239..85986e396 100644 --- a/app/dao/notifications_dao.py +++ b/app/dao/notifications_dao.py @@ -141,7 +141,7 @@ def update_notification_status_by_id(notification_id, status, sent_by=None, deta return None if ( - notification.notification_type == 'sms' + notification.notification_type == SMS_TYPE and notification.international and not country_records_delivery(notification.phone_prefix) ):