File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -443,14 +443,14 @@ def get_collections(self) -> Iterator[Collection]:
443
443
call_modifier (self .modifier , collection )
444
444
yield collection
445
445
446
- def get_items (self , * ids : str , recursive : bool = True ) -> Iterator ["Item_Type" ]:
446
+ def get_items (self , * ids : str , recursive : bool = False ) -> Iterator ["Item_Type" ]:
447
447
"""Return all items of this catalog.
448
448
449
449
Args:
450
450
ids: Zero or more item ids to find.
451
451
recursive : If True, search this catalog and all children for the
452
452
item; otherwise, only search the items of this catalog. Defaults
453
- to True .
453
+ to False .
454
454
455
455
Return:
456
456
Iterator[Item]: Iterator of items whose parent is this
@@ -481,7 +481,7 @@ def get_all_items(self) -> Iterator["Item_Type"]:
481
481
catalogs or collections connected to this catalog through
482
482
child links.
483
483
"""
484
- yield from self .get_items ()
484
+ yield from self .get_items (recursive = True )
485
485
486
486
def search (
487
487
self ,
Original file line number Diff line number Diff line change @@ -789,7 +789,7 @@ def test_recursion_on_fallback() -> None:
789
789
path = "https://raw.githubusercontent.com/stac-utils/pystac/v1.9.0/docs/example-catalog/catalog.json"
790
790
catalog = Client .from_file (path )
791
791
with pytest .warns (FallbackToPystac ):
792
- next (catalog .get_items ())
792
+ next (catalog .get_items (recursive = True ))
793
793
794
794
795
795
@pytest .mark .vcr
You can’t perform that action at this time.
0 commit comments