Skip to content

Commit 5b86552

Browse files
committed
Clean up two more use of .value on
StrEnums
1 parent 61d99ed commit 5b86552

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contentctl/objects/baseline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def getDeployment(cls, v:Any, info:ValidationInfo)->Deployment:
3636
@computed_field
3737
@property
3838
def datamodel(self) -> List[DataModel]:
39-
return [dm for dm in DataModel if dm.value in self.search]
39+
return [dm for dm in DataModel if dm in self.search]
4040

4141
@model_serializer
4242
def serialize_model(self):

contentctl/objects/investigation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def inputs(self)->List[str]:
3737
@computed_field
3838
@property
3939
def datamodel(self) -> List[DataModel]:
40-
return [dm for dm in DataModel if dm.value in self.search]
40+
return [dm for dm in DataModel if dm in self.search]
4141

4242
@computed_field
4343
@property

0 commit comments

Comments
 (0)