mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
added app name and lable keys into note template
This commit is contained in:
parent
00406a7376
commit
e68a7cbf7b
2 changed files with 5 additions and 1 deletions
|
|
@ -30,6 +30,8 @@ class IntegrateFtrackNote(pyblish.api.InstancePlugin):
|
|||
return
|
||||
|
||||
host_name = instance.context.data["hostName"]
|
||||
app_name = instance.context.data["appName"]
|
||||
app_label = instance.context.data["appLabel"]
|
||||
comment = (instance.context.data.get("comment") or "").strip()
|
||||
if not comment:
|
||||
self.log.info("Comment is not set.")
|
||||
|
|
@ -109,6 +111,8 @@ class IntegrateFtrackNote(pyblish.api.InstancePlugin):
|
|||
"intent": final_intent_label,
|
||||
"comment": comment,
|
||||
"host_name": host_name,
|
||||
"app_name": app_name,
|
||||
"app_label": app_label,
|
||||
"published_paths": "\n".join(sorted(published_paths)),
|
||||
}
|
||||
comment = template.format(**format_data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue