def getUserByLogin(login):
conn = connect_db()
cur = conn.cursor()
cur.execute("SELECT * FROM public.users WHERE login = '?' LIMIT 1", [str(login)])
res = cur.fetchone()
print(res)
if not res:
return False
return res