Skip to content

Commit 658e3e1

Browse files
PadeanuAlex Grosu
authored andcommitted
Fixed pagination on /items
1 parent de7c453 commit 658e3e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/common/rs_server_common/stac_api_common.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,11 @@ def read_cql(filt: dict):
568568

569569
# Return results as a dict
570570
data = ItemCollection(features=list(all_items.values()), type="FeatureCollection")
571-
dict_data: Dict[str, Any] = self.paginate(data)
571+
if "/search" in self.request.url.path:
572+
# Do the custom pagination only for search endpoints, for others let eodag handle on station side.
573+
dict_data: Dict[str, Any] = self.paginate(data)
574+
else:
575+
dict_data = data.model_dump()
572576

573577
# In cadip, we retrieved the sessions data.
574578
# We need to fill their assets with the session files data.

0 commit comments

Comments
 (0)