diff --git a/main.py b/main.py index 3c8f2f8..f0cef3e 100644 --- a/main.py +++ b/main.py @@ -146,6 +146,7 @@ def change(): if users != []: balance_old = users[0][2] c.execute(f"UPDATE users SET balance = balance + {change} WHERE id={user_id}") + conn.commit() c.execute(f"SELECT * FROM users WHERE id={user_id}") user = c.fetchall()[0] db_log.info(f"Changed the balance from user {user[0]} from {balance_old} to {user[2]}")