mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Move logic closer to where it's used
This commit is contained in:
parent
9997acbbea
commit
5b1f6eb30c
1 changed files with 2 additions and 3 deletions
|
|
@ -460,9 +460,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
"data": self.create_version_data(instance)
|
||||
}
|
||||
|
||||
repres = instance.data.get("representations", [])
|
||||
new_repre_names_low = [_repre["name"].lower() for _repre in repres]
|
||||
|
||||
existing_version = io.find_one({
|
||||
'type': 'version',
|
||||
'parent': subset["_id"],
|
||||
|
|
@ -488,6 +485,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
}))
|
||||
|
||||
# Find representations of existing version and archive them
|
||||
repres = instance.data.get("representations", [])
|
||||
new_repre_names_low = [_repre["name"].lower() for _repre in repres]
|
||||
current_repres = io.find({
|
||||
"type": "representation",
|
||||
"parent": version_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue