From 8d5b13788e2db0e447930d504d8c2b366865f46b Mon Sep 17 00:00:00 2001 From: Burathar Date: Tue, 23 Mar 2021 22:51:25 +0100 Subject: [PATCH] Fix error in get method --- biscd/biscd/models/yaml_serializable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biscd/biscd/models/yaml_serializable.py b/biscd/biscd/models/yaml_serializable.py index 37f636a..bf75b99 100644 --- a/biscd/biscd/models/yaml_serializable.py +++ b/biscd/biscd/models/yaml_serializable.py @@ -85,7 +85,7 @@ class YamlSerializable(object): # For other keys, filter out any item that does not contain a key, # or that not match the key's value ymlsl_dicts = [ymlsl_dict for ymlsl_dict in ymlsl_dicts - if ymlsl_dict.get(key, None) == value] + if next(iter(ymlsl_dict.values())).get(key, None) == value] # After each iteration: if no item is left, return None if not any(ymlsl_dicts):