Change variable name to snake_case

This commit is contained in:
Jacob Danell 2023-03-14 18:32:18 +01:00
parent 1093c519ad
commit 383ce7ccb6

View file

@ -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,
) )