renamed 'get_representation' to 'get_representation_by_id'

This commit is contained in:
Jakub Trllo 2022-06-07 18:27:54 +02:00
parent ba6ef6d2ae
commit cde47eefa8
4 changed files with 40 additions and 11 deletions

View file

@ -11,7 +11,7 @@ from openpype.client import (
get_subset_by_id,
get_version_by_id,
get_last_version_by_subset_id,
get_representation,
get_representation_by_id,
)
from openpype.pipeline import (
legacy_io,
@ -313,8 +313,8 @@ class InventoryModel(TreeModel):
for repre_id, group_dict in sorted(grouped.items()):
group_items = group_dict["items"]
# Get parenthood per group
representation = get_representation(
project_name, representation_id=repre_id
representation = get_representation_by_id(
project_name, repre_id
)
if not representation:
not_found["representation"].append(group_items)

View file

@ -10,7 +10,7 @@ from openpype.client import (
get_version_by_id,
get_versions,
get_hero_versions,
get_representation,
get_representation_by_id,
get_representations,
)
from openpype import style
@ -657,9 +657,9 @@ class SceneInventoryView(QtWidgets.QTreeView):
project_name = legacy_io.active_project()
# Get available versions for active representation
repre_doc = get_representation(
repre_doc = get_representation_by_id(
project_name,
representation_id=active["representation"],
active["representation"],
fields=["parent"]
)