summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jsonpath_rw/jsonpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpath_rw/jsonpath.py b/jsonpath_rw/jsonpath.py
index 7e45cb9..2394bd1 100644
--- a/jsonpath_rw/jsonpath.py
+++ b/jsonpath_rw/jsonpath.py
@@ -272,7 +272,7 @@ class Where(JSONPath):
self.right = right
def find(self, data):
- return [subdata for subdata in self.left.find(data) if self.right.find(data)]
+ return [subdata for subdata in self.left.find(data) if self.right.find(subdata)]
def __str__(self):
return '%s where %s' % (self.left, self.right)