fix: do not apply list() to str value
This commit is contained in:
parent
e99dca4352
commit
d0e42a3c2d
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ class Connection(Compat):
|
||||||
return raw_html
|
return raw_html
|
||||||
|
|
||||||
# tuple to list and back to tuple
|
# tuple to list and back to tuple
|
||||||
values = tuple([cleanhtml(l) for l in list(values)])
|
value_list = [values] if isinstance(values, str) else list(values)
|
||||||
|
values = tuple([cleanhtml(l) for l in value_list])
|
||||||
return values
|
return values
|
||||||
|
|
||||||
async def fetchall(self, query: str, values: tuple = ()) -> list:
|
async def fetchall(self, query: str, values: tuple = ()) -> list:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue