From 45a972a1e8b64a811affc1914d01280874116be9 Mon Sep 17 00:00:00 2001 From: Matthew Richards Date: Thu, 9 Dec 2021 12:01:50 +0000 Subject: [PATCH] refactor: use alternative query for search API filters #265 --- datagateway_api/src/search_api/filters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datagateway_api/src/search_api/filters.py b/datagateway_api/src/search_api/filters.py index 020d9413..a10a2105 100644 --- a/datagateway_api/src/search_api/filters.py +++ b/datagateway_api/src/search_api/filters.py @@ -51,7 +51,7 @@ 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): @@ -59,7 +59,7 @@ 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): @@ -67,4 +67,4 @@ 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)