autofix wrong representations

This commit is contained in:
Jakub Trllo 2023-09-07 11:50:16 +02:00
parent b601da0dbb
commit 7cde83933a

View file

@ -667,6 +667,9 @@ def convert_v4_representation_to_v3(representation):
_c_folder = context["folder"]
context["asset"] = _c_folder["name"]
elif "asset" in context and "folder" not in context:
context["folder"] = {"name": context["asset"]}
if "product" in context:
_c_product = context.pop("product")
context["family"] = _c_product["type"]