notifications

This commit is contained in:
Karl 2025-07-18 16:27:08 +01:00
parent 87753785d4
commit 927bae0f3d

View File

@ -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: