From d4a33549ca9120f5848892a33a702f332febd998 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 7 Apr 2025 12:37:35 -0700 Subject: [PATCH] fix invites --- app/delivery/send_to_providers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/delivery/send_to_providers.py b/app/delivery/send_to_providers.py index 9f0513c85..7d0117a0a 100644 --- a/app/delivery/send_to_providers.py +++ b/app/delivery/send_to_providers.py @@ -187,11 +187,11 @@ def send_email_to_provider(notification): if personalisation: personalisation = personalisation.decode("utf-8") p = json.loads(personalisation) - if os.get("NOTIFY_ENVIRONMENT") == "staging": + if os.getenv("NOTIFY_ENVIRONMENT") == "staging": current_app.logger.info(f"Invite personalization before {p}") p = p.replace("%5B", "") p = p.replace("%5D", "") - if os.get("NOTIFY_ENVIRONMENT") == "staging": + if os.getenv("NOTIFY_ENVIRONMENT") == "staging": current_app.logger.info(f"Invite personalization after {p}") notification.personalisation = p