mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
OP-2951 - refactor use better function
This commit is contained in:
parent
6b6c466d8b
commit
af079897a8
1 changed files with 5 additions and 5 deletions
|
|
@ -2040,14 +2040,14 @@ def get_linked_ids_for_representations(project, repre_ids, dbcon=None,
|
|||
referenced_version_ids = _process_referenced_pipeline_result(result,
|
||||
link_type)
|
||||
|
||||
representations = avalon.io.find(
|
||||
{
|
||||
ref_ids = avalon.io.distinct(
|
||||
"_id",
|
||||
filter={
|
||||
"parent": {"$in": list(referenced_version_ids)},
|
||||
"type": "representation"
|
||||
},
|
||||
projection={"_id": True}
|
||||
}
|
||||
)
|
||||
ref_ids = {representation["_id"] for representation in representations}
|
||||
|
||||
return list(ref_ids)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue