get_representation_parents() missed project_name

This commit is contained in:
Jacob Danell 2023-02-16 13:24:50 +01:00 committed by Jakub Ježek
parent aa1dd161a5
commit 0124bba40c

View file

@ -210,7 +210,7 @@ def switch_item(container,
if any(not x for x in [asset_name, subset_name, representation_name]):
repre_id = container["representation"]
representation = get_representation_by_id(project_name, repre_id)
repre_parent_docs = get_representation_parents(representation)
repre_parent_docs = get_representation_parents(project_name, representation)
if repre_parent_docs:
version, subset, asset, _ = repre_parent_docs
else: