Skip to content

Commit 47b687e

Browse files
jlahovnikanesson-cs
authored andcommitted
fix: remove limit if collection pagination is not enabled
1 parent ab4902f commit 47b687e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

stac_fastapi/eodag/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ async def all_collections(
240240
else:
241241
raise HTTPException(status_code=400, detail=f"Unsupported filter_lang {filter_lang}")
242242

243+
if not self.extension_is_enabled("OffsetPaginationExtension"):
244+
limit = None
245+
243246
collections = cast(
244247
CollectionsList,
245248
await asyncio.to_thread(

0 commit comments

Comments
 (0)