Python Forum

Full Version: Telegram bot - Problem with database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everybody when i do...
cursor.execute('UPDATE Utenti SET Api_Key = ? WHERE Id = ?;', (Api_Key, chat_id))
cursor.execute('SELECT * FROM Utenti WHERE Id = ' + str(chat_id))
...i haven't problem but if i see inside the db the modify isn't present.. what can I do to solve it?
connection.commit() perhaps?