|
3 | 3 |
|
4 | 4 | from aiohttp import ClientSession |
5 | 5 |
|
6 | | -from .exceptions import XIVAPIBadRequest, XIVAPIForbidden, XIVAPINotFound, XIVAPIServiceUnavailable, \ |
7 | | - XIVAPIInvalidLanguage, XIVAPIError, XIVAPIInvalidIndex, XIVAPIInvalidColumns, XIVAPIInvalidAlgo |
| 6 | +from .exceptions import ( |
| 7 | + XIVAPIBadRequest, XIVAPIForbidden, XIVAPINotFound, XIVAPIServiceUnavailable, |
| 8 | + XIVAPIInvalidLanguage, XIVAPIError, XIVAPIInvalidIndex, XIVAPIInvalidColumns, |
| 9 | + XIVAPIInvalidAlgo |
| 10 | +) |
8 | 11 | from .decorators import timed |
9 | 12 | from .models import Filter, Sort |
10 | 13 |
|
@@ -218,7 +221,7 @@ async def pvpteam_by_id(self, lodestone_id): |
218 | 221 | return await self.process_response(response) |
219 | 222 |
|
220 | 223 | @timed |
221 | | - async def index_search(self, name, indexes=(), columns=(), filters: List[Filter] = (), sort: Sort = None, page=1, per_page=10, language="en", string_algo="match"): |
| 224 | + async def index_search(self, name, indexes=(), columns=(), filters: List[Filter] = (), sort: Sort = None, page=0, per_page=10, language="en", string_algo="match"): |
222 | 225 | """|coro| |
223 | 226 | Search for data from on specific indexes. |
224 | 227 | Parameters |
@@ -304,7 +307,7 @@ async def index_search(self, name, indexes=(), columns=(), filters: List[Filter] |
304 | 307 | }] |
305 | 308 | } |
306 | 309 | }, |
307 | | - "from": (page * per_page), |
| 310 | + "from": page, |
308 | 311 | "size": per_page |
309 | 312 | } |
310 | 313 | } |
|
0 commit comments