def get_all_directors(repo: AbstractRepository): all_directors = repo.get_all_directors() directors_names = [ director.director_full_name for director in all_directors ] return directors_names
def get_all_directors(repo: AbstractRepository): directors = repo.get_all_directors() return directors_to_dict(directors)