fix(filter): parse JSON-encoded string values before comma split in FilterTuple
This commit is contained in:
parent
f4b9c202d6
commit
83d265a379
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ class FilterTuple(_FilterTuple):
|
||||||
if operator in ("in", "not in") and isinstance(value, str):
|
if operator in ("in", "not in") and isinstance(value, str):
|
||||||
try:
|
try:
|
||||||
parsed = json.loads(value)
|
parsed = json.loads(value)
|
||||||
value = parsed if isinstance(parsed, list) else [parsed]
|
value = parsed if isinstance(parsed, list) else value.split(",") # type: ignore[assignment]
|
||||||
except ValueError:
|
except ValueError:
|
||||||
value = value.split(",")
|
value = value.split(",")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue