mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Delete unused code
* The `_should_record_notification_in_history_table` function stopped being used in this commit:c23ae15f32* `NOTIFICATIONS_ALERT` stopped being used in this commit:5aa37f09b6
This commit is contained in:
@@ -79,14 +79,6 @@ def dao_create_notification(notification):
|
||||
db.session.add(notification)
|
||||
|
||||
|
||||
def _should_record_notification_in_history_table(notification):
|
||||
if notification.api_key_id and notification.key_type == KEY_TYPE_TEST:
|
||||
return False
|
||||
if notification.service.research_mode:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def _decide_permanent_temporary_failure(current_status, status):
|
||||
# Firetext will send pending, then send either succes or fail.
|
||||
# If we go from pending to delivered we need to set failure type as temporary-failure
|
||||
|
||||
Reference in New Issue
Block a user