mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
improving code in nuke deadline submitter
This commit is contained in:
parent
ec47c7466f
commit
9b1d24acb8
1 changed files with 10 additions and 11 deletions
|
|
@ -470,17 +470,16 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin,
|
|||
# we need to avoid adding them to expected files since those would be
|
||||
# duplicated into metadata.json file
|
||||
representations = instance.data.get("representations", [])
|
||||
if representations:
|
||||
# check if file is not in representations with publish_on_farm tag
|
||||
for repre in representations:
|
||||
# is file in representations files?
|
||||
if file not in repre.get("files", []):
|
||||
continue
|
||||
# is publish_on_farm tag set to False?
|
||||
if "publish_on_farm" in repre.get("tags", []):
|
||||
self.log.debug(
|
||||
"Skipping expected file: {}".format(path))
|
||||
return
|
||||
# check if file is not in representations with publish_on_farm tag
|
||||
for repre in representations:
|
||||
# Skip if 'publish_on_farm' not available
|
||||
if "publish_on_farm" not in repre.get("tags", []):
|
||||
continue
|
||||
# is file in representations files?
|
||||
if file in repre.get("files", []):
|
||||
self.log.debug(
|
||||
"Skipping expected file: {}".format(path))
|
||||
return
|
||||
|
||||
if "#" in file:
|
||||
pparts = file.split("#")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue