mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
replaced call to mongo 'dbcon.parenthood' with 'get_representation_parents' function
This commit is contained in:
parent
02cbed6b33
commit
d3cc8b59c5
1 changed files with 4 additions and 2 deletions
|
|
@ -28,7 +28,6 @@ from openpype.lib import (
|
|||
TemplateUnsolved,
|
||||
)
|
||||
from openpype.pipeline import (
|
||||
schema,
|
||||
legacy_io,
|
||||
Anatomy,
|
||||
)
|
||||
|
|
@ -643,7 +642,10 @@ def get_representation_path(representation, root=None, dbcon=None):
|
|||
|
||||
def path_from_config():
|
||||
try:
|
||||
version_, subset, asset, project = dbcon.parenthood(representation)
|
||||
project_name = dbcon.active_project()
|
||||
version_, subset, asset, project = get_representation_parents(
|
||||
project_name, representation
|
||||
)
|
||||
except ValueError:
|
||||
log.debug(
|
||||
"Representation %s wasn't found in database, "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue