Skip to content

Commit

Permalink
fix: make ne and neq operators work with non-numeric values #315
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Feb 1, 2022
1 parent b275fdb commit f5e3b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datagateway_api/src/datagateway_api/icat/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def create_condition(attribute_name, operator, value):
# distinct filter is used in a request
jpql_value = (
f"{value}"
if operator in ("in", "not in", "!=", "between")
if operator in ("in", "not in", "between")
or str(value).startswith("UPPER")
or "o." in str(value)
else f"'{value}'"
Expand Down

0 comments on commit f5e3b4b

Please sign in to comment.