This commit is contained in:
Kenneth Kehl
2025-06-10 10:33:59 -07:00
parent 419e70bfd7
commit 34434bda57
9 changed files with 15 additions and 38 deletions

View File

@@ -64,7 +64,9 @@ def get_notification_by_id(notification_id):
schema = PublicNotificationResponseSchema()
schema.context = {
"notification_instance": notification,
"template_subject": getattr(template, "subject", None) if hasattr(template, "subject") else None
"template_subject": (
getattr(template, "subject", None) if hasattr(template, "subject") else None
),
}
serialized = schema.dump(notification)