mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Remove unintended code block and fix Hound lint warnings for <79 chars width
This commit is contained in:
parent
b1ef1b751f
commit
c13416b685
3 changed files with 21 additions and 37 deletions
|
|
@ -168,7 +168,9 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
|
|||
thumbnail_path = None
|
||||
for repre in instance.data.get("representations", []):
|
||||
if repre.get('thumbnail') or "thumbnail" in repre.get('tags', []):
|
||||
repre_thumbnail_path = get_representation_path(instance, repre, False)
|
||||
repre_thumbnail_path = get_representation_path(
|
||||
instance, repre, False
|
||||
)
|
||||
if os.path.exists(repre_thumbnail_path):
|
||||
thumbnail_path = repre_thumbnail_path
|
||||
break
|
||||
|
|
@ -182,7 +184,9 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
|
|||
if (repre.get("review")
|
||||
or "review" in tags
|
||||
or "burnin" in tags):
|
||||
repre_review_path = get_representation_path(instance, repre, False)
|
||||
repre_review_path = get_representation_path(
|
||||
instance, repre, False
|
||||
)
|
||||
if os.path.exists(repre_review_path):
|
||||
review_path = repre_review_path
|
||||
if "burnin" in tags: # burnin has precedence if exists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue