Skip to content

Commit

Permalink
Fix bug when getting search filters (#82)
Browse files Browse the repository at this point in the history
* fix false boolean filters being skipped

* fix None lookup causing keyerror
  • Loading branch information
EricOuma authored Mar 13, 2024
1 parent 599ef24 commit ccbe80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_typesense/changelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def get_search_filters(self, field_name: str, used_parameters: dict):
] = f"{lookup_to_operator[lookup]}{min_val or max_val}"
value = None

if value is not None:
if value is not None and lookup is not None:
if field.field_type == "string":
search_filters_dict[
field_name
Expand Down

0 comments on commit ccbe80b

Please sign in to comment.