EOX GitLab Instance

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

quick fix when product type found

parent 78baaff8
No related branches found
No related tags found
1 merge request!6Hotfix product type found
Pipeline #20418 passed
......@@ -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