summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-12-29 23:54:51 +0800
committeraltaf-creator <dev@altafcreator.com>2025-12-29 23:54:51 +0800
commit39108aace0736ec676875e36e40024e56b665daa (patch)
tree15dd0e8610b5c77a65bdf36f719b742b122838c4 /backend
parent89043bec163f64d8ed501eaa7c07795cc7ff93c9 (diff)
almost there!
Diffstat (limited to 'backend')
-rw-r--r--backend/notif.py6
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],
},
}