Answer the question
In order to leave comments, you need to log in
Can't select postgres entry from db?
There is an entry but I can not select it with this code
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question