Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Aug 28, 2023
1 parent 15c115c commit 2e29fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def __get_search_results(self, ignore_retired_filter=False, sort=True, highlight
must_not_have_criterion = self.get_mandatory_exclude_words_criteria()
must_have_criterion = self.get_mandatory_words_criteria()
results = results.filter(must_have_criterion) if must_have_criterion is not None else results
results = results.filter(~must_not_have_criterion) if must_not_have_criterion is not None else results
results = results.filter(~must_not_have_criterion) if must_not_have_criterion is not None else results # pylint: disable=invalid-unary-operand-type

if extras_fields:
fields += list(extras_fields.keys())
Expand Down

0 comments on commit 2e29fba

Please sign in to comment.