|
|
@ -85,7 +85,7 @@ class YamlSerializable(object): |
|
|
|
# For other keys, filter out any item that does not contain a key, |
|
|
|
# For other keys, filter out any item that does not contain a key, |
|
|
|
# or that not match the key's value |
|
|
|
# or that not match the key's value |
|
|
|
ymlsl_dicts = [ymlsl_dict for ymlsl_dict in ymlsl_dicts |
|
|
|
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 |
|
|
|
# After each iteration: if no item is left, return None |
|
|
|
if not any(ymlsl_dicts): |
|
|
|
if not any(ymlsl_dicts): |
|
|
|