Skip to content

Commit 5b0416a

Browse files
author
Phil Varner
committed
iterate over the Item values rather than the Items string keys
1 parent 2997ae4 commit 5b0416a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/transactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def bulk_item_insert(self, items: Items, **kwargs) -> str:
215215
base_url = str(kwargs["request"].base_url)
216216
except Exception:
217217
base_url = ""
218-
processed_items = [self._preprocess_item(item, base_url) for item in items]
218+
processed_items = [self._preprocess_item(item, base_url) for item in items.items.values()]
219219
return_msg = f"Successfully added {len(processed_items)} items."
220220

221221
# helpers.bulk(

0 commit comments

Comments
 (0)