Browse Source

Fix error in get method

master
Burathar 4 years ago
parent
commit
8d5b13788e
  1. 2
      biscd/biscd/models/yaml_serializable.py

2
biscd/biscd/models/yaml_serializable.py

@ -85,7 +85,7 @@ class YamlSerializable(object): @@ -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):

Loading…
Cancel
Save