Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def change_row(self, dish_id, dish):
- self.sql.execute(
- 'UPDATE dishes SET name = ?, category = ?, composition = ?, weight = ?, price = ? where id = ?',
- (dish[0], dish[1], dish[2], dish[3], dish[4], dish_id)
- )
- self.db.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement