mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Change variable name to snake_case
This commit is contained in:
parent
1093c519ad
commit
383ce7ccb6
1 changed files with 7 additions and 5 deletions
|
|
@ -16,9 +16,11 @@ class IntegrateKitsuNote(pyblish.api.ContextPlugin):
|
||||||
note_status_shortname = "wfa"
|
note_status_shortname = "wfa"
|
||||||
|
|
||||||
# comment settings
|
# comment settings
|
||||||
CustomCommentTemplate = {}
|
custom_comment_template = {}
|
||||||
CustomCommentTemplate["enabled"] = False
|
custom_comment_template = {
|
||||||
CustomCommentTemplate["comment_template"] = "{comment}"
|
"enabled": False,
|
||||||
|
"comment_template": "{comment}",
|
||||||
|
}
|
||||||
|
|
||||||
def safe_format(self, msg, **kwargs):
|
def safe_format(self, msg, **kwargs):
|
||||||
def replace_missing(match):
|
def replace_missing(match):
|
||||||
|
|
@ -70,9 +72,9 @@ class IntegrateKitsuNote(pyblish.api.ContextPlugin):
|
||||||
)
|
)
|
||||||
|
|
||||||
# If custom comment, create it
|
# If custom comment, create it
|
||||||
if self.CustomCommentTemplate["enabled"]:
|
if self.custom_comment_template["enabled"]:
|
||||||
publish_comment = self.safe_format(
|
publish_comment = self.safe_format(
|
||||||
self.CustomCommentTemplate["comment_template"],
|
self.custom_comment_template["comment_template"],
|
||||||
**instance.data,
|
**instance.data,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue