diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-29 23:54:51 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-29 23:54:51 +0800 |
| commit | 39108aace0736ec676875e36e40024e56b665daa (patch) | |
| tree | 15dd0e8610b5c77a65bdf36f719b742b122838c4 /backend/notif.py | |
| parent | 89043bec163f64d8ed501eaa7c07795cc7ff93c9 (diff) | |
almost there!
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 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], }, } |
