sqlite3.OperationalError: near "7": syntax error
cur.execute('INSERT INTO "{}" VALUES(?, ?)'.format(group.replace('"', '""')), (food, 1))
sqlite3.OperationalError: near "7": syntax error
cur.execute('INSERT INTO "{}" VALUES(?, ?)'.format(group.replace('"', '""')), (food, 1))
sqlite3.OperationalError: near "7": syntax error
cur.execute('SELECT COUNT(Name) FROM "{}" WHERE Name=?'.format(group.replace('"', '""')), (food,))
sqlite3.OperationalError: near "WHERE": syntax error
there shoudnt be a comma on the line before the WHERE clause ;)
sqlite3.OperationalError: near "7": syntax error
cur.execute('UPDATE "{}" SET Times=? WHERE Name=?'.format(group.replace('"', '""')),
(times_before + 1, food))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us