From 5564c8cbfcb4f8efd60b81288b2f1c474f34ed69 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Wed, 12 Mar 2025 00:03:15 +0100 Subject: [PATCH] notify: no need to include dashes in token --- machines/gerd/services/notify/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/machines/gerd/services/notify/app.py b/machines/gerd/services/notify/app.py index 7c6a083..88dcd9d 100644 --- a/machines/gerd/services/notify/app.py +++ b/machines/gerd/services/notify/app.py @@ -291,7 +291,8 @@ def send_notification(): con = get_db() cur = con.cursor() res = cur.execute( - "SELECT username FROM tokens WHERE token = ?", (token,) + "SELECT username FROM tokens WHERE REPLACE(token, '-', '') = ? OR token = ? ", + (token, token), ).fetchone() if not res: