Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Fixes incorrect way of referencing object properties #262

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/codegate/storage/storage_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading