From a64379c255ca91102edcb8335565083adca97569 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Wed, 30 Oct 2024 19:36:43 +0100 Subject: [PATCH] Fix 2 --- auth/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/auth.py b/auth/auth.py index 79a7b73..51d11c7 100644 --- a/auth/auth.py +++ b/auth/auth.py @@ -22,7 +22,7 @@ class Authentication: if len(token) != 43: return False with self.connect() as c: - res = cur.execute("SELECT token FROM users WHERE profileId=?", + res = c.execute("SELECT token FROM users WHERE profileId=?", (profileId,)).fetchone() if res is not None and res[0] != token: return False