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 eb8bdc5 commit f2a5914Copy full SHA for f2a5914
services/common/rs_server_common/stac_api_common.py
@@ -584,8 +584,8 @@ def read_query(query_arg: str | None):
584
dict_data = self.process_files(dict_data)
585
586
# Handle pagination links.
587
- if len(dict_data["features"]) > 0:
588
- # Don't create next page if the current one does not have features
+ if len(dict_data["features"]) == self.limit:
+ # Create next page if the current one reaches limit
589
dict_data["next"] = f"page={self.page + 1}"
590
if self.page > 1:
591
dict_data["prev"] = f"page={self.page - 1}"
0 commit comments