Skip to content

Commit

Permalink
Python API: Fix DeleteIndex response
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Sep 29, 2024
1 parent 2139861 commit e6c6f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/python/src/pagefind/index/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ async def delete_index(self) -> None:
result = await self._service.send(
InternalDeleteIndexRequest(type="DeleteIndex", index_id=self._index_id)
)
assert result["type"] == "DeletedIndex"
assert result["type"] == "DeleteIndex"
self._index_id = None
self._service = None

Expand Down

1 comment on commit e6c6f5e

@SKalt
Copy link
Contributor

@SKalt SKalt commented on e6c6f5e Sep 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Please sign in to comment.