Skip to content

Commit

Permalink
validate values supplied with nin operator #297
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Jan 19, 2022
1 parent 00dbba5 commit 92b5f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datagateway_api/src/common/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, field, value, operation):
self.value = value
self.operation = operation

if self.operation in ["in", "inq"]:
if self.operation in ["in", "nin", "inq"]:
if not isinstance(self.value, list):
raise BadRequestError(
f"When using the {self.operation} operation for a WHERE filter, the"
Expand Down

0 comments on commit 92b5f36

Please sign in to comment.