Advertisement
ProgNeo

Untitled

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