def delete_sport(self, sport_id): with self._database_engine.new_session() as session: dao = SportDAO(session) sport = dao.get(sport_id) dao.delete(sport)
def delete_sport(self, sport_id): logging.info("Delete person %s" % sport_id) with self._database_engine.new_session() as session: dao = SportDAO(session) sport = dao.get(sport_id) dao.delete(sport)