Skip to content

Commit b15d39c

Browse files
authored
Merge pull request #25 from EO-DataHub/token_pagination
Missing token pagination commit.
2 parents 97df9e0 + f3e3198 commit b15d39c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stac_planet_api/response_adaptor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_search_links(base_url: str, next_token: str, prev_token: str) -> list:
5757
]
5858

5959
if next_token:
60-
links.append(
60+
links.extend(
6161
[
6262
{
6363
"rel": "next",
@@ -83,7 +83,7 @@ def get_search_links(base_url: str, next_token: str, prev_token: str) -> list:
8383
)
8484

8585
if prev_token:
86-
links.append(
86+
links.extend(
8787
[
8888
{
8989
"rel": "prev",
@@ -310,7 +310,7 @@ def get_quertables(collection_id: str = ""):
310310
return queryables
311311

312312

313-
def planet_to_stac_response(planet_response: dict, base_url: str, auth, method: str):
313+
def planet_to_stac_response(planet_response: dict, base_url: str, auth):
314314
stac_items = []
315315

316316
# keeping this for non-concurrency testing purposes

0 commit comments

Comments
 (0)