From a43749c31a0f25ae90b21dbc74575ff08d06aae8 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Tue, 30 Dec 2025 00:24:10 +0800 Subject: fix unhashable type slice i think --- backend/notif.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/notif.py b/backend/notif.py index d454a7c..57ccc23 100644 --- a/backend/notif.py +++ b/backend/notif.py @@ -64,10 +64,12 @@ def send_notification(endpoint: str): try: webpush( subscription_info=subscription_info, - data={ + data=""" + { "title": "Hello, world!", "body": "Hello, Victoria Hall!" - }, + } + """, vapid_private_key=PRIVATE_VAPID_KEY, vapid_claims={ "sub": "mailto:dev@altafcreator.com", -- cgit v1.2.3