Skip to content

Commit

Permalink
do not re-define asset_ids in function
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Aug 8, 2023
1 parent 2b567f1 commit 57bda40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stactools/threedep/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 57bda40

Please sign in to comment.