Skip to content

Commit

Permalink
add init code to deal with self.search_api_query #260
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Dec 20, 2021
1 parent 08605af commit 9d95948
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datagateway_api/src/search_api/nested_where_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def __init__(self, lhs, rhs, joining_operator, search_api_query=None):
self.rhs = rhs
self.joining_operator = joining_operator
self.search_api_query = search_api_query
if self.search_api_query is not None:
NestedWhereFilters.set_search_api_query_static(self, search_api_query)

def apply_filter(self, query):
query.query.query.setConditionsByString(str(self))
Expand Down

0 comments on commit 9d95948

Please sign in to comment.