From 0adfc4966248f6ca0e19fbe782d98097edfd537c Mon Sep 17 00:00:00 2001 From: mid-kid Date: Wed, 30 Oct 2024 19:47:40 +0100 Subject: [PATCH] Actually commit the changes --- auth/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/auth.py b/auth/auth.py index 7c39754..cf54fba 100644 --- a/auth/auth.py +++ b/auth/auth.py @@ -29,8 +29,8 @@ class Authentication: return True def check_user(self, profileId, token, user): - with self.connect() as con: - with contextlib.closing(con.cursor()) as c: + with self.connect() as c: + with c: res = c.execute("SELECT user FROM users WHERE profileId=?", (profileId,)).fetchone() if res is not None: