diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-09 17:22:59 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-09 17:22:59 +0100 |
commit | ded47952fc7f3e4484c6ae4a559e514cb660f2bc (patch) | |
tree | 05b03c75973fce54dff0bb32698b3a4748a5b1bf /src/hydrilla/server/serve.py | |
parent | e7824b93359d754c2e9ade5e1f58786d3ac455d8 (diff) | |
download | haketilo-hydrilla-ded47952fc7f3e4484c6ae4a559e514cb660f2bc.tar.gz haketilo-hydrilla-ded47952fc7f3e4484c6ae4a559e514cb660f2bc.zip |
make resource dependency specifier an object
Diffstat (limited to 'src/hydrilla/server/serve.py')
-rw-r--r-- | src/hydrilla/server/serve.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py index 815ac63..d56085c 100644 --- a/src/hydrilla/server/serve.py +++ b/src/hydrilla/server/serve.py @@ -108,7 +108,8 @@ class ResourceInfo(ItemInfo): """Initialize ResourceInfo using resource definition read from JSON.""" super().__init__(resource_obj) - self.dependencies = resource_obj.get('dependencies', []) + dependencies = resource_obj.get('dependencies', []) + self.dependencies = [res_ref['identifier'] for res_ref in dependencies] class MappingInfo(ItemInfo): """Shortened data of a mapping.""" |