From 927bae0f3d14a623fe53497e2bd113310a5112eb Mon Sep 17 00:00:00 2001 From: Karl Date: Fri, 18 Jul 2025 16:27:08 +0100 Subject: [PATCH] notifications --- routes/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.py b/routes/api.py index 3af7415..d503b96 100644 --- a/routes/api.py +++ b/routes/api.py @@ -224,7 +224,7 @@ def send_expiry_notifications_route(username: str, password: str) -> Response: @requires_basic_auth def send_test_notification_route(username: str, password: str) -> Response: """Sends a test push notification to all users.""" - data = request.get_json() + data = request.get_json(silent=True) message = data.get("message", "Ktv Test") if data else "Ktv Test" try: