get the items with a specific attribute from the bundle
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ class Item(BaseModel):
|
||||
return attribute.value
|
||||
return False
|
||||
|
||||
def attribute_exists(self, ref_attribute):
|
||||
def attribute_exists(self, ref_attribute: Attribute) -> bool:
|
||||
for attribute in self.attributes:
|
||||
if attribute.id == ref_attribute.id and attribute.value.lower(
|
||||
) == ref_attribute.value.lower():
|
||||
|
||||
Reference in New Issue
Block a user