def get_colleagues(actor_name: str, repo: AbstractRepository): actor = repo.get_actor(actor_name) if actor is not None: return actors_to_dict(actor.colleagues) return None
def get_actor(fullname: str, repo: AbstractRepository): actor = repo.get_actor(fullname) if actor is None: return return actor_to_dict(actor)