diff --git a/src/fiber_package/groups/committees/committee.py b/src/fiber_package/groups/committees/committee.py index 317e668..ff071f8 100644 --- a/src/fiber_package/groups/committees/committee.py +++ b/src/fiber_package/groups/committees/committee.py @@ -26,10 +26,10 @@ class CommitteeModel(BaseModel): @model_validator(mode='after') def current_edition_in_editions(self) -> Self: - uuid = self.current_edition.uuid + uuid = self.current_edition if uuid is None: return self - if uuid not in self.editions.uuids: + if uuid not in self.editions: raise ValueError("Current edition must be in list of editions") return self @@ -45,6 +45,6 @@ class CommitteeEditionModel(BaseModel): @model_validator(mode='after') def functions_to_members_only(self) -> Self: for uuid in self.functions.keys(): - if uuid not in self.members.uuids: + if uuid not in self.members: raise ValueError("Cannot only assign functions to members") return self \ No newline at end of file