Skip to content

Commit c948aad

Browse files
committed
Remove offset, use limit function argument
1 parent 2fa49a8 commit c948aad

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

runtimes/eoapi/stac/eoapi/stac/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -512,17 +512,13 @@ async def item_collection(
512512
)
513513

514514
if output_type == MimeTypes.html:
515-
offset = int(request.query_params.get("offset") or 0)
516-
limit = int(request.query_params.get("limit") or 10)
517-
518515
item_collection["id"] = collection_id
519516
return create_html_response(
520517
request,
521518
item_collection,
522519
template_name="items",
523520
title=f"{collection_id} items",
524-
limit=limit,
525-
offset=offset,
521+
limit=limit
526522
)
527523

528524
elif output_type == MimeTypes.csv:

runtimes/eoapi/stac/eoapi/stac/templates/items.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ <h1 class="my-4">
9696
let url = "{{ template.api_root }}/collections/{{ response.id }}/items?";
9797
const searchParams = new URLSearchParams(window.location.search);
9898
searchParams.set('limit', limit);
99-
searchParams.set('offset', 0);
10099
url += searchParams.toString();
101100
window.location.href = url;
102101
});

0 commit comments

Comments
 (0)