def delete(self, id_): session_ = session.query(Sessions).filter(Sessions.id == id_).first() session.delete(session_) session.commit()
def delete(self, id_): lending = session.query(Lending).filter(Lending.id == id_).first() session.delete(lending) session.commit()
def delete(self, id_): book = session.query(Books).filter(Books.id == id_).first() session.delete(book) session.commit()
def delete(self, id_): user = session.query(Users).filter(Users.id == id_).first() session.delete(user) session.commit()
def delete(self, id_): thesis = session.query(Thesis).filter(Thesis.id == id_).first() session.delete(thesis) session.commit()