Skip to content

Commit edf2b00

Browse files
authored
Merge pull request #153
Fix handle non-string elements in iterable for query builder
2 parents bb022a9 + 34acb6d commit edf2b00

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)