ProgNeo

Untitled

Dec 8th, 2021 (edited)
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def change_row(self, department_id, department):
  2. self.sql.execute(
  3. '''UPDATE departments SET
  4. name = ?, category = ?, organization = ?, director = ?, phone = ?, floor = ? where id = ?''',
  5. (department[0], department[1], department[2], department[3],
  6. department[4], department[5], department_id)
  7. )
  8. self.db.commit()
Add Comment
Please, Sign In to add comment