Browse Source

Fix 5

master
mid-kid 3 weeks ago
parent
commit
ba5aed0fa9
  1. 2
      auth/auth.py

2
auth/auth.py

@ -30,7 +30,7 @@ class Authentication:
def check_user(self, profileId, token, user): def check_user(self, profileId, token, user):
with self.connect() as con: with self.connect() as con:
with con.cursor() as c: with contextlib.closing(con.cursor()) as c:
res = c.execute("SELECT user FROM users WHERE profileId=?", res = c.execute("SELECT user FROM users WHERE profileId=?",
(profileId,)).fetchone() (profileId,)).fetchone()
if res is not None: if res is not None:

Loading…
Cancel
Save