Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao committed Apr 26, 2019
1 parent 81687e9 commit 34b22cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easyquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ def filter(self, table, column_slice=None):
table : filtered table
"""
if self._operator is None and self._operands is None:
return table
return table if column_slice is None else self._get_table_column(table, column_slice)

if self._operator == 'AND':
if self._operator == 'AND' and column_slice is None:
for op in self._operands:
table = op.filter(table)
return table
Expand Down

0 comments on commit 34b22cb

Please sign in to comment.