Skip to content

Commit

Permalink
add boolean operator to WHERE filter #259
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Nov 19, 2021
1 parent 78ec0fc commit 12c680f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datagateway_api/common/search_api/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@


class SearchAPIWhereFilter(PythonICATWhereFilter):
def __init__(self, field, value, operation):
def __init__(self, field, value, operation, boolean_operator="and"):
super().__init__(field, value, operation)
self.boolean_operator = boolean_operator

def apply_filter(self, query):
return super().apply_filter(query)
Expand Down

0 comments on commit 12c680f

Please sign in to comment.