Пример #1
0
 def deleteFilmFromList(self, filmToDelete, ui=True) -> None:
     #Functie care sterge un film din repo
     #Date de intrare: filmToDelete Film
     #Date de iesire: -
     idx = 0
     for index, film in enumerate(self.__listaFilme):
         if film.getId() == filmToDelete.getId():
             idx = index
             break
     del(self.__listaFilme[idx])
     if ui: UI.display_film_deleted_notification()
Пример #2
0
 def meniu_sterge_film(self):
     id = input("ID-ul filmului pe care vrei sa il stergi: ")
     self.__dict_list[self.__user_input](id)
     UI.display_film_deleted_notification()