Skip to content

Commit 9c15b5a

Browse files
committed
fixup: use collection_id, not id
1 parent aaeb944 commit 9c15b5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pystac_client/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def get_search_link(self) -> Optional[pystac.Link]:
505505
None,
506506
)
507507

508-
def _get_collections_href(self, id: Optional[str] = None) -> str:
508+
def _get_collections_href(self, collection_id: Optional[str] = None) -> str:
509509
self_href = self.get_self_href()
510510
if self_href is None:
511511
data_link = self.get_single_link("data")
@@ -521,10 +521,10 @@ def _get_collections_href(self, id: Optional[str] = None) -> str:
521521
if not pystac.utils.is_absolute_href(collections_href):
522522
collections_href = self._make_absolute_href(collections_href)
523523

524-
if id is None:
524+
if collection_id is None:
525525
return collections_href
526526
else:
527-
return f"{collections_href.rstrip('/')}/{id}"
527+
return f"{collections_href.rstrip('/')}/{collection_id}"
528528

529529
def _make_absolute_href(self, href: str) -> str:
530530
self_link = self.get_single_link("self")

0 commit comments

Comments
 (0)