From a3b8bdfda77b4a5f14fe4d11e7da3c9b851b42b1 Mon Sep 17 00:00:00 2001 From: timsergeeff Date: Thu, 31 Oct 2024 12:37:41 +0300 Subject: [PATCH] tests --- client/ayon_kitsu/hooks/pre_status_change.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/ayon_kitsu/hooks/pre_status_change.py b/client/ayon_kitsu/hooks/pre_status_change.py index 37e86e7..571e9fb 100644 --- a/client/ayon_kitsu/hooks/pre_status_change.py +++ b/client/ayon_kitsu/hooks/pre_status_change.py @@ -62,7 +62,7 @@ def execute(self): if not self.data["task_entity"]["data"].get("kitsuId"): self.log.info("This task does not have a kitsu task id. Skipping kitsu task status change.") return - + kitsuId = self.data["task_entity"]["data"]["kitsuId"] task=gazu.task.get_task(kitsuId) task_current_status_shortname= task["task_status"]["short_name"] @@ -83,7 +83,6 @@ def execute(self): kitsu_wip_status = gazu.task.get_task_status_by_short_name(self.app_start_status_shortname) self.log.info("Current Kitsu task status is {task_current_status_shortname}. Task id {kitsuId}") - self.log.info("Changing Kitsu task status to {self.app_start_status_shortname}.") gazu.task.add_comment(task["id"], kitsu_wip_status)