def get(self): available_destinations = [ q for q in destinations.values() if not q.deprecated ] return [q.to_dict() for q in available_destinations]
def get(self): available_destinations = filter(lambda q: not q.deprecated, destinations.values()) return [q.to_dict() for q in available_destinations]
def get(self): return [q.to_dict() for q in destinations.values()]