diff options
| -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 ef7ba34..8fe0df3 100644 --- a/backend/notif.py +++ b/backend/notif.py @@ -43,11 +43,13 @@ def subscribe(data: PushSubscriptionData): def send_notification(endpoint: str): cursor.execute("SELECT * FROM subscriptions WHERE endpoint = ?", (endpoint,)) row = cursor.fetchall()[0] + print(row) + subscription_info = { "endpoint": endpoint, "keys": { - "p256dh": row[2], - "auth": row[3], + "p256dh": row[1], + "auth": row[2], }, } |
