From abed185812edbd45a2792052bc79eead8312f857 Mon Sep 17 00:00:00 2001 From: ramadanomar Date: Tue, 30 Aug 2022 13:40:14 +0300 Subject: [PATCH] fixes linting --- api/catalog/api/controllers/search_controller.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/catalog/api/controllers/search_controller.py b/api/catalog/api/controllers/search_controller.py index ae490a658..92d4a99be 100644 --- a/api/catalog/api/controllers/search_controller.py +++ b/api/catalog/api/controllers/search_controller.py @@ -244,10 +244,8 @@ def _apply_filter( arguments = search_params.data.get(serializer_field) if arguments is None: return s - arguments = arguments.split(',') - + arguments = arguments.split(",") parameter = es_field or serializer_field - query = Q("terms", **{parameter: arguments}) method = getattr(s, behaviour) return method("bool", should=query)