EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 6f27b12f authored by Nikola Jankovic's avatar Nikola Jankovic :computer:
Browse files

Merge branch 'hotfix_product_type_found' into 'main'

Hotfix product type found

See merge request !6
parents 31cc99da 6ae6dcb2
No related branches found
No related tags found
1 merge request!6Hotfix product type found
Pipeline #20424 passed
......@@ -26,7 +26,7 @@
#-----------------------------------------------------------------------------
# NOTE: using dev release for now to include browse registration implementation
FROM eoxa/eoxserver:release-1.1.1-dev4
FROM eoxa/eoxserver:release-1.1.1-dev5
ARG DEBUG="false"
......
......@@ -252,7 +252,7 @@ class EOxServerBackend(ItemBackend):
# TODO: find better way of dealing with missing mappings
# ideally EOxServer figures it out by itself, even when no
# eo:bands are set
coverage_mapping=coverage_mapping
coverage_mapping=coverage_mapping,
)
elif product_type is not None:
created = False
......@@ -327,6 +327,7 @@ class EOxServerBackend(ItemBackend):
product_type_found = True
break
else:
product_type_found = True
break
if product_type_found:
......@@ -339,7 +340,9 @@ class EOxServerBackend(ItemBackend):
collection = models.Collection.objects.get(identifier=collection_id)
models.collection_insert_eo_object(collection, product)
elif self.auto_create_product_types:
product = self._register_with_stac(source, item, replace, storage, None, True)
product = self._register_with_stac(
source, item, replace, storage, None, True
)
else:
raise RegistrationError(f"{item} not matched to any product_type")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment