Merge remote-tracking branch 'origin/api-v1.5.4' into dev
This commit is contained in:
commit
c0e1a8a391
1 changed files with 3 additions and 3 deletions
|
|
@ -213,11 +213,11 @@ def values_for_operator(value: Union[str, list], op: schemas.SearchEventOperator
|
|||
if value is None:
|
||||
return value
|
||||
if op == schemas.SearchEventOperator._starts_with:
|
||||
return value + '%'
|
||||
return f"{value}%"
|
||||
elif op == schemas.SearchEventOperator._ends_with:
|
||||
return '%' + value
|
||||
return f"%{value}"
|
||||
elif op == schemas.SearchEventOperator._contains or op == schemas.SearchEventOperator._not_contains:
|
||||
return '%' + value + '%'
|
||||
return f"%{value}%"
|
||||
return value
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue