You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure what the error is going to be here, because I found this with some derived code that failed in an arbitrarily different way.
The problem is that items is an instance of Items, and using this in a list comprehension will iterate over the (string) keys in the items dict<string,Any> attribute of Items per it's implementation of iter, rather than each Item itself (the values of the dict) as this code expects.
I fixed this in my code with:
processed_items = [self._preprocess_item(item, base_url) for item in items.items.values()]
The text was updated successfully, but these errors were encountered:
stac-fastapi/stac_fastapi/sqlalchemy/stac_fastapi/sqlalchemy/transactions.py
Line 154 in 79c0cee
I'm not sure what the error is going to be here, because I found this with some derived code that failed in an arbitrarily different way.
The problem is that
items
is an instance ofItems
, and using this in a list comprehension will iterate over the (string) keys in theitems
dict<string,Any> attribute of Items per it's implementation ofiter
, rather than each Item itself (the values of the dict) as this code expects.I fixed this in my code with:
The text was updated successfully, but these errors were encountered: