Merge pull request #475 from tokejepsen/2.x/feature/linked_assets

Get linked assets from "inputs".
This commit is contained in:
Jakub Ježek 2020-08-28 12:14:53 +02:00 committed by GitHub
commit 4ea4e8fa3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -746,8 +746,9 @@ class PypeHook:
def get_linked_assets(asset_entity):
"""Return linked assets for `asset_entity`."""
# TODO implement
return []
inputs = asset_entity["data"].get("inputs", [])
inputs = [io.find_one({"_id": x}) for x in inputs]
return inputs
def map_subsets_by_family(subsets):