Fix for node finder
This commit is contained in:
@@ -15,7 +15,9 @@ def find_for_shot(project, node):
|
||||
|
||||
@register_node_finder(node_type_task['name'])
|
||||
def find_for_task(project, node):
|
||||
if node['parent']:
|
||||
|
||||
parent = node.get(u'parent') if isinstance(node, dict) else node.parent
|
||||
if parent:
|
||||
endpoint = 'attract.shots.perproject.with_task'
|
||||
else:
|
||||
endpoint = 'attract.tasks.perproject.view_task'
|
||||
|
Reference in New Issue
Block a user