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
  • Loading branch information
ramadanomar committed Aug 30, 2022
1 parent 21f3051 commit abed185
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

1 comment on commit abed185

@ramadanomar
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-authored-by: @sarayourfriend
Co-authored-by: @obulat [email protected]

Please sign in to comment.