fix hound issues

This commit is contained in:
Ondrej Samohel 2021-06-01 15:27:08 +02:00 committed by Ondrej Samohel
parent 3371e39c83
commit 5806abcd6d
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
3 changed files with 5 additions and 20 deletions

View file

@ -433,18 +433,10 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
app = os.environ.get("AVALON_APP", "")
preview = False
self.log.info("ffffff")
self.log.info(app)
if app in self.aov_filter.keys():
self.log.info("in")
for aov_pattern in self.aov_filter[app]:
self.log.info(aov_pattern)
self.log.info(aov)
if re.match(aov_pattern,
aov
):
if re.match(aov_pattern, aov):
preview = True
self.log.info("{}:{}:{}".format(aov, app, instance_data))
break
new_instance = copy(instance_data)
@ -511,23 +503,18 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
bake_render_path = instance.get("bakeRenderPath", [])
# create representation for every collected sequence
self.log.debug("-------")
for collection in collections:
self.log.debug(collection)
ext = collection.tail.lstrip(".")
preview = False
# if filtered aov name is found in filename, toggle it for
# preview video rendering
for app in self.aov_filter.keys():
self.log.debug(app)
if os.environ.get("AVALON_APP", "") == app:
for aov in self.aov_filter[app]:
self.log.debug(aov)
if re.match(
aov,
list(collection)[0]
):
self.log.info("{}:{}:{}".format(aov, app, instance))
preview = True
break