Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timsergeeff committed Oct 31, 2024
1 parent 623c5b3 commit a3b8bdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/ayon_kitsu/hooks/pre_status_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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)
Expand Down

0 comments on commit a3b8bdf

Please sign in to comment.