feat(api): sessions-search-value-helper fixed value-operator for non-string-values
This commit is contained in:
parent
eee68d53d5
commit
979e76321b
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