OP-4181 - clean up after review comments - missed line

This commit is contained in:
Petr Kalis 2022-10-06 17:34:46 +02:00
parent e0f46635f5
commit f6f5e77f3c

View file

@ -443,8 +443,7 @@ class IntegrateHeroVersion(pyblish.api.InstancePlugin):
archived_repre["_id"],
changes)
else:
repre["old_id"] = repre["_id"]
repre["_id"] = _create_or_convert_to_mongo_id(None)
repre["old_id"] = repre.pop("_id")
repre["type"] = "archived_representation"
op_session.create_entity(project_name, "representation",
repre)