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 c6df9f1 commit 8fbd240Copy full SHA for 8fbd240
stac_fastapi/core/stac_fastapi/core/core.py
@@ -745,11 +745,7 @@ async def post_search(
745
default_limit = int(os.getenv("STAC_DEFAULT_ITEM_LIMIT", 10))
746
747
requested_limit = getattr(search_request, "limit", None)
748
-
749
- if requested_limit is None:
750
- limit = default_limit
751
- else:
752
- limit = requested_limit
+ limit = requested_limit or default_limit
753
754
if global_max_limit:
755
limit = min(limit, global_max_limit)
0 commit comments