mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-25 16:53:42 -04: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:
@@ -293,7 +293,6 @@ class Config(object):
|
|||||||
}
|
}
|
||||||
CELERY_QUEUES = []
|
CELERY_QUEUES = []
|
||||||
|
|
||||||
NOTIFICATIONS_ALERT = 5 # five mins
|
|
||||||
FROM_NUMBER = 'development'
|
FROM_NUMBER = 'development'
|
||||||
|
|
||||||
STATSD_HOST = os.getenv('STATSD_HOST')
|
STATSD_HOST = os.getenv('STATSD_HOST')
|
||||||
|
|||||||
@@ -79,14 +79,6 @@ def dao_create_notification(notification):
|
|||||||
db.session.add(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):
|
def _decide_permanent_temporary_failure(current_status, status):
|
||||||
# Firetext will send pending, then send either succes or fail.
|
# 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
|
# If we go from pending to delivered we need to set failure type as temporary-failure
|
||||||
|
|||||||
Reference in New Issue
Block a user