Skip to content

Commit

Permalink
refactor: use alternative query for search API filters #265
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Dec 9, 2021
1 parent ff9595d commit 45a972a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datagateway_api/src/search_api/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ def __init__(self, skip_value):
super().__init__(skip_value, filter_use="search_api")

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


class SearchAPILimitFilter(PythonICATLimitFilter):
def __init__(self, limit_value):
super().__init__(limit_value)

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


class SearchAPIIncludeFilter(PythonICATIncludeFilter):
def __init__(self, included_filters):
super().__init__(included_filters)

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

0 comments on commit 45a972a

Please sign in to comment.