bugfix - pages start from 1

This commit is contained in:
Viktor Barzin 2025-06-22 13:04:10 +00:00
parent 03d24aff99
commit 9eae30b0d6
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -100,7 +100,8 @@ async def _fetch_listings_with_semaphore(
) -> list[dict[str, Any]]:
result = []
# we don't know how many pages we have but we stop as soon as there's no more
for page_id in range(999):
for page_id in range(1, 3):
# seems like all searches stop at 1500 entries (page_id * page_size)
async with semaphore:
try:
listing_query_result = await listing_query(