Skip to content

Commit 93098b9

Browse files
committedNov 2, 2020
reverting handling of lists
1 parent 3cb3ff0 commit 93098b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
package_dir={"": "src"},
1717
packages=["cs50"],
1818
url="https://github.com/cs50/python-cs50",
19-
version="5.0.4"
19+
version="5.0.5"
2020
)

‎src/cs50/sql.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def __escape(value):
455455

456456
# Escape value(s), separating with commas as needed
457457
if type(value) in [list, tuple]:
458-
return sqlparse.sql.TokenList([__escape(v) for v in value])
458+
return sqlparse.sql.TokenList(sqlparse.parse(", ".join([str(__escape(v)) for v in value])))
459459
else:
460460
return __escape(value)
461461

0 commit comments

Comments
 (0)