mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
fix invites
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user