summaryrefslogtreecommitdiff
path: root/backend/notif.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/notif.py')
-rw-r--r--backend/notif.py6
1 files changed, 4 insertions, 2 deletions
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",