diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-30 00:24:10 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-30 00:24:10 +0800 |
| commit | a43749c31a0f25ae90b21dbc74575ff08d06aae8 (patch) | |
| tree | 555bfd73cf58d7b6b92db531fffaab5736e9432d /backend/notif.py | |
| parent | 2495f6ca950bf23e6e4c394297268258554c48d2 (diff) | |
fix unhashable type slice i think
Diffstat (limited to 'backend/notif.py')
| -rw-r--r-- | backend/notif.py | 6 |
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", |
