summaryrefslogtreecommitdiff
path: root/src/hydrilla
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-09 17:22:59 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-09 17:22:59 +0100
commitded47952fc7f3e4484c6ae4a559e514cb660f2bc (patch)
tree05b03c75973fce54dff0bb32698b3a4748a5b1bf /src/hydrilla
parente7824b93359d754c2e9ade5e1f58786d3ac455d8 (diff)
downloadhaketilo-hydrilla-ded47952fc7f3e4484c6ae4a559e514cb660f2bc.tar.gz
haketilo-hydrilla-ded47952fc7f3e4484c6ae4a559e514cb660f2bc.zip
make resource dependency specifier an object
Diffstat (limited to 'src/hydrilla')
-rw-r--r--src/hydrilla/server/serve.py3
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."""