diff --git a/src/codegate/storage/storage_engine.py b/src/codegate/storage/storage_engine.py index 7328cf86..ed26c268 100644 --- a/src/codegate/storage/storage_engine.py +++ b/src/codegate/storage/storage_engine.py @@ -130,9 +130,10 @@ async def search_by_property(self, name: str, properties: List[str]) -> list[obj # Weaviate performs substring matching of the properties. So # we need to double check the response. + properties = [prop.lower() for prop in properties] filterd_objects = [] for object in response.objects: - if object["properties"][name] in properties: + if object.properties[name].lower() in properties: filterd_objects.append(object) response.objects = filterd_objects