From 39e4f63b8c588f5a1a4e0756945852f0c54c5ec0 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Fri, 6 Apr 2018 12:01:16 +0100 Subject: [PATCH] Use the positive condition when checking the environment --- app/v2/notifications/post_notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/v2/notifications/post_notifications.py b/app/v2/notifications/post_notifications.py index 35bbff97b..3af8db0b0 100644 --- a/app/v2/notifications/post_notifications.py +++ b/app/v2/notifications/post_notifications.py @@ -277,7 +277,7 @@ def process_letter_notification(*, letter_data, api_key, template, reply_to_text ) elif ( api_key.service.research_mode and - current_app.config['NOTIFY_ENVIRONMENT'] not in ['staging', 'live'] + current_app.config['NOTIFY_ENVIRONMENT'] in ['preview', 'development'] ): create_fake_letter_response_file.apply_async( (notification.reference,),