Answer the question
In order to leave comments, you need to log in
Error in sqlite operation. What to do?
if gamep>0:
cur.execute("UPDATE users SET attempts = attempts - 1 WHERE id = ?", (message.from_user.id,))
cur.execute('SELECT attempts FROM users WHERE id = ?', (message.from_user.id,))
gamep = cur.fetchone()[0]
con.commit()
Answer the question
In order to leave comments, you need to log in
It is obvious to remove the uniqueness constraint from the field of attempts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question