Skip to content

Commit 2698f0a

Browse files
authored
fix: update collection attributes from external collection (#103)
overwrite license, description and title from external collection data
1 parent b73a3b0 commit 2698f0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stac_fastapi/eodag/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _get_collection(
125125
}
126126

127127
for key in ["license", "description", "title"]:
128-
if value := getattr(collection, key):
128+
if key not in extended_collection and (value := getattr(collection, key)):
129129
extended_collection[key] = value
130130

131131
keywords = collection.keywords or []

0 commit comments

Comments
 (0)