fixes incorrectly handled type error when list of objects is found in data #9876

This commit is contained in:
Abhimanyu Saharan 2023-05-13 02:44:50 +05:30
parent ef765d3a57
commit 239be33303

View File

@ -67,7 +67,7 @@ class Condition:
""" """
def _get(obj, key): def _get(obj, key):
if isinstance(obj, list): if isinstance(obj, list):
return [i.get(key) for i in obj] return [dict.get(i, key) for i in obj]
return dict.get(obj, key) return dict.get(obj, key)