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: