Skip to content

Commit be1f679

Browse files
hasielhassanvictoriagrey
authored andcommitted
Added support for "not_in" operator when using text fields (#193)
Thank you for your contribution @hasielhassan !
1 parent fad9e85 commit be1f679

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

shotgun_api3/lib/mockgun/mockgun.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,8 @@ def _compare(self, field_type, lval, operator, rval):
607607
return lval.startswith(rval)
608608
elif operator == "ends_with":
609609
return lval.endswith(rval)
610+
elif operator == "not_in":
611+
return lval not in rval
610612
elif field_type == "entity":
611613
if operator == "is":
612614
# If one of the two is None, ensure both are.

0 commit comments

Comments
 (0)