From e03e740149297155590074a07ebe2004f2e68db5 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 17 Jan 2025 10:56:45 +0100 Subject: [PATCH] Solved bug --- app/utils/configuration_resolver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/utils/configuration_resolver.py b/app/utils/configuration_resolver.py index 895d641..5dc7177 100644 --- a/app/utils/configuration_resolver.py +++ b/app/utils/configuration_resolver.py @@ -55,7 +55,7 @@ class ConfigurationResolver: self._recursive_resolve(value, root_config) elif key == "link": try: - loaded = self._find_entry(root_config, self._mapped_key(value), True) + loaded = self._find_entry(root_config, self._mapped_key(value), False) if isinstance(loaded, list) and len(loaded) > 2: loaded = self._find_entry(root_config, self._mapped_key(value), False) current_config.clear() @@ -114,6 +114,7 @@ class ConfigurationResolver: key = next((k for k in current if self._mapped_key(k) == part), None) # If no fitting key was found search in the children if key is None: + # The following line seems buggy; Why is children loaded allways and not just when children is set? current = self._find_by_name(current["children"],part) if not current: raise KeyError(