Skip to content

Commit

Permalink
feat: implement inq operator #297
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Jan 19, 2022
1 parent f5525c9 commit fc1cf19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datagateway_api/src/datagateway_api/icat/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def create_filter(self):
self.value = "(NULL)"

where_filter = self.create_condition(self.field, "in", self.value)
elif self.operation == "inq":
self.operation = "in"
elif self.operation == "between":
where_filter = self.create_condition(
self.field, "between", f"'{self.value[0]}' and '{self.value[1]}'",
Expand Down

0 comments on commit fc1cf19

Please sign in to comment.