From 39108aace0736ec676875e36e40024e56b665daa Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Mon, 29 Dec 2025 23:54:51 +0800 Subject: almost there! --- backend/notif.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backend/notif.py') 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], }, } -- cgit v1.2.3