Fix for node finder

This commit is contained in:
2016-11-03 12:32:22 +01:00
parent 464469f496
commit ff0951768e

View File

@@ -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'