Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
fixes linting
Browse files Browse the repository at this point in the history
Co-authored by: @sarayourfriend
Co-authored by: @obulat
  • Loading branch information
ramadanomar committed Aug 31, 2022
1 parent 21f3051 commit 2c18f53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/catalog/api/controllers/search_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c18f53

Please sign in to comment.