We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bfee07 commit 426ff12Copy full SHA for 426ff12
meilisearch/client.py
@@ -101,7 +101,7 @@ def get_indexes(self) -> List[Index]:
101
index["createdAt"],
102
index["updatedAt"],
103
)
104
- for index in response
+ for index in response['results']
105
]
106
107
def get_raw_indexes(self) -> List[Dict[str, Any]]:
tests/index/test_index.py
@@ -49,7 +49,7 @@ def test_get_indexes(client):
49
50
@pytest.mark.usefixtures("indexes_sample")
51
def test_get_raw_indexes(client):
52
- response = client.get_raw_indexes()
+ response = client.get_raw_indexes()['results']
53
uids = [index['uid'] for index in response]
54
assert isinstance(response, list)
55
assert common.INDEX_UID in uids
0 commit comments