Bugfix: Dependency without 'inputLinks' not downloaded (#5337)

* Bugfix: Dependency without 'inputLinks' not downloaded

* cleaning
This commit is contained in:
Félix David 2023-08-03 10:58:52 +02:00 committed by GitHub
parent fe88b3d662
commit 188c6f64b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,16 +212,12 @@ def _process_referenced_pipeline_result(result, link_type):
continue
for output in sorted(outputs_recursive, key=lambda o: o["depth"]):
output_links = output.get("data", {}).get("inputLinks")
if not output_links and output["type"] != "hero_version":
continue
# Leaf
if output["_id"] not in correctly_linked_ids:
continue
_filter_input_links(
output_links,
output.get("data", {}).get("inputLinks"),
link_type,
correctly_linked_ids
)