Skip to content

Commit

Permalink
feat: implement neq operator #297
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Jan 19, 2022
1 parent 8d57256 commit 9094bbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datagateway_api/src/datagateway_api/icat/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def create_filter(self):
where_filter = self.create_condition(self.field, "=", self.value)
elif self.operation == "ne":
where_filter = self.create_condition(self.field, "!=", self.value)
elif self.operation == "neq":
self.operation = "ne"
where_filter = self.create_filter()
elif self.operation == "like":
where_filter = self.create_condition(self.field, "like", f"%{self.value}%")
elif self.operation == "ilike":
Expand Down

0 comments on commit 9094bbb

Please sign in to comment.