mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-25 08:43:55 -04:00
Make comment clearer following review
This commit is contained in:
@@ -92,8 +92,8 @@ def dao_create_notification(notification):
|
|||||||
|
|
||||||
def _decide_permanent_temporary_failure(current_status, status, code=None):
|
def _decide_permanent_temporary_failure(current_status, status, code=None):
|
||||||
# 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 failure we need to set failure type as temporary-failure
|
# If we go from pending to failure we need to set failure type as temporary-failure,
|
||||||
# if we get a detailed code from firetext, we should use that code to set status instead
|
# unless we get a detailed code from firetext. Then we should use that code to set status instead.
|
||||||
if current_status == NOTIFICATION_PENDING and status == NOTIFICATION_PERMANENT_FAILURE:
|
if current_status == NOTIFICATION_PENDING and status == NOTIFICATION_PERMANENT_FAILURE:
|
||||||
if code:
|
if code:
|
||||||
status = get_message_status_from_firetext_code(code)
|
status = get_message_status_from_firetext_code(code)
|
||||||
|
|||||||
Reference in New Issue
Block a user