fix get_task: use gazu.task.get_task_by_entity (gazu 1.x)

get_task_by_name was removed in gazu 1.x; the addon pins gazu>=1.0,<2.0
so the call raises AttributeError for artists. get_task_by_entity is the
drop-in replacement with the same (entity, task_type) signature.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Joseph HENRY 2026-05-27 16:37:25 +02:00
parent d2d64dc8a8
commit 6b06224f8c

View File

@ -277,7 +277,7 @@ class Kitsu(Tracker):
entity = self.get_id(entity)
task_type = self.get_task_type(task)
task = gazu.task.get_task_by_name(entity, task_type)
task = gazu.task.get_task_by_entity(entity, task_type)
if not task:
return