Skip to content

Commit

Permalink
fix: make WHERE filter without operator work with int and bool #322
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Feb 4, 2022
1 parent 22a0ea8 commit 6988a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datagateway_api/src/search_api/query_filter_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def get_condition_values(conditions_dict):
field = list(conditions_dict.keys())[0]
filter_data = list(conditions_dict.values())[0]

if isinstance(filter_data, str):
if isinstance(filter_data, (bool, int, str)):
# Format: {"where": {"property": "value"}}
log.debug("Format of WHERE filter: {'where': {'property': 'value'}}")
value = conditions_dict[field]
Expand Down

0 comments on commit 6988a5a

Please sign in to comment.