mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Simplified querying for old repre
This commit is contained in:
parent
fe78983491
commit
bc509fcf00
1 changed files with 7 additions and 8 deletions
|
|
@ -1047,17 +1047,16 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
if not version_entity:
|
if not version_entity:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
repres = get_representations(
|
matching_repres = get_representations(
|
||||||
project_name,
|
project_name,
|
||||||
version_ids=[version_entity["id"]]
|
version_ids=[version_entity["id"]],
|
||||||
|
representation_names=[current_repre_name],
|
||||||
|
fields={"files"}
|
||||||
)
|
)
|
||||||
matching_repre = None
|
|
||||||
for repre in repres:
|
if not matching_repres:
|
||||||
if repre["name"] == current_repre_name:
|
|
||||||
matching_repre = repre
|
|
||||||
break
|
|
||||||
if not matching_repre:
|
|
||||||
return None
|
return None
|
||||||
|
matching_repre = list(matching_repres)[0]
|
||||||
|
|
||||||
repre_file_paths = [
|
repre_file_paths = [
|
||||||
file_info["path"]
|
file_info["path"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue