Skip to content

Commit 9a4d8fd

Browse files
authored
Fix data links for products indexed with STAC metadata (#1011)
1 parent b8eb5ec commit 9a4d8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datacube_ows/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def get_s3_browser_uris(datasets, pt=None, s3url="", s3bucket=""):
682682
uris = list(chain.from_iterable(uris))
683683
unique_uris = set(uris)
684684

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

687687
# convert to browsable link
688688
def convert(uri):

0 commit comments

Comments
 (0)