예제 #1
0
 def delete_sport(self, sport_id: str):
     with self._database_engine.new_session() as session:
         sport_dao = SportDAO(session)
         sport = sport_dao.get(sport_id)
         sport_dao.delete(sport)
예제 #2
0
 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)