From 57bda407bebf0ed4cc92de231d5ffe1846c67131 Mon Sep 17 00:00:00 2001 From: hrodmn Date: Fri, 21 Jul 2023 10:22:59 -0500 Subject: [PATCH] do not re-define asset_ids in function resolves https://github.com/stactools-packages/threedep/issues/14 --- src/stactools/threedep/commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/stactools/threedep/commands.py b/src/stactools/threedep/commands.py index 56dc0a8..1949990 100644 --- a/src/stactools/threedep/commands.py +++ b/src/stactools/threedep/commands.py @@ -61,9 +61,7 @@ def create_catalog_command( collections = {} items = defaultdict(list) for product in PRODUCTS: - if not asset_ids: - asset_ids = utils.fetch_ids(product) - for asset_id in asset_ids: + for asset_id in asset_ids or utils.fetch_ids(product): item = stac.create_item_from_product_and_id( product, asset_id, base=source )