Skip to content

Commit 34acb6d

Browse files
committed
fix(rql): handle non-string elements in iterable for query builder
1 parent bb022a9 commit 34acb6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mpt_api_client/rql/query_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def rql_encode(op: str, value: Any) -> str:
107107
if op not in constants.LIST and isinstance(value, QueryValue):
108108
return query_value_str(value)
109109
if op in constants.LIST and isinstance(value, list | tuple | set):
110-
return ",".join(value)
110+
return ",".join(str(el) for el in value)
111111

112112
raise TypeError(f"the `{op}` operator doesn't support the {type(value)} type.")
113113

0 commit comments

Comments
 (0)