Skip to content

Commit

Permalink
Fix data links for products indexed with STAC metadata (#1011)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9a4d8fd)
  • Loading branch information
robbibt authored and SpacemanPaul committed Apr 23, 2024
1 parent 77d4baf commit a0ee3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datacube_ows/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def get_s3_browser_uris(datasets: dict[ProductBandQuery, xarray.DataArray],
uris = list(chain.from_iterable(uris))
unique_uris = set(uris)

regex = re.compile(r"s3:\/\/(?P<bucket>[a-zA-Z0-9_\-\.]+)\/(?P<prefix>[\S]+)/[a-zA-Z0-9_\-\.]+.yaml")
regex = re.compile(r"s3:\/\/(?P<bucket>[a-zA-Z0-9_\-\.]+)\/(?P<prefix>[\S]+)/[a-zA-Z0-9_\-\.]+.(yaml|json)")

# convert to browsable link
def convert(uri: str) -> str:
Expand Down

0 comments on commit a0ee3a9

Please sign in to comment.