Skip to content

Commit

Permalink
add link to style to collection ensuring eodash v4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Jul 29, 2024
1 parent b41dac6 commit 110be7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eodash_catalog/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ def handle_raw_source(
link = collection.add_item(item)
link.extra_fields["datetime"] = time_entry["Time"]
link.extra_fields["assets"] = [a["File"] for a in time_entry["Assets"]]
# eodash v4 compatibility, adding last referenced style to collection
collection.add_link(style_link)
add_collection_information(catalog_config, collection, collection_config)
collection.update_extent_from_items()
return collection

0 comments on commit 110be7b

Please sign in to comment.