feat(api): fixed not-contains value

This commit is contained in:
Taha Yassine Kraiem 2022-02-08 00:32:29 +01:00
parent e9f14e09f0
commit c1647245ce

View file

@ -216,7 +216,7 @@ def values_for_operator(value: Union[str, list], op: schemas.SearchEventOperator
return value + '%'
elif op == schemas.SearchEventOperator._ends_with:
return '%' + value
elif op == schemas.SearchEventOperator._contains:
elif op == schemas.SearchEventOperator._contains or op == schemas.SearchEventOperator._not_contains:
return '%' + value + '%'
return value