From 6654e312b63b55caa1676870de2c6c0fbe7d86b0 Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 12 Nov 2026 09:33:36 +0100 Subject: [PATCH] Fixed it being an unhashable dict --- pyproject.toml | 4 ++-- send_notifications/send_notification.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5486899..d3e3d52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,13 @@ [project] name = "lib-send-notifications" -version = "0.2.1" +version = "0.2.2" description = "Shared library to send notifications via the internal backend API" requires-python = ">=3.10" authors = [{ name = "Florian Gänsejunge" }] dependencies = [ "lib-secret-manager>=0.3.0", "requests>=2.31", - "lib-shared-models", + "lib-shared-models>=0.1.1", ] [build-system] diff --git a/send_notifications/send_notification.py b/send_notifications/send_notification.py index 79623e9..d3c2aac 100644 --- a/send_notifications/send_notification.py +++ b/send_notifications/send_notification.py @@ -181,7 +181,7 @@ class NotificationClient: } payload = { "user_id": user_id, - "message": {message.to_dict()}, + "message": message.to_dict(exclude_none=True), } logger.debug("Sending notification: title=%r body=%r", title, body)