fix personalisation

This commit is contained in:
Kenneth Kehl
2024-01-18 10:03:35 -08:00
parent 40f8718a61
commit 567dd390b4
9 changed files with 87 additions and 6 deletions

View File

@@ -73,6 +73,14 @@ def dao_create_notification(notification):
if not notification.status:
notification.status = NOTIFICATION_CREATED
# notify-api-749 do not write to db
# if we have a verify_code we know this is the authentication notification at login time
# and not csv (containing PII) provided by the user, so allow verify_code to continue to exist
print(f"PERSONALISATION = {notification.personalisation}")
if "verify_code" in str(notification.personalisation):
pass
else:
notification.personalisation=""
db.session.add(notification)