Sqlite v3.22 compatability
This commit is contained in:
parent
e943527e8c
commit
3e08d82c64
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ def hide_comments_by_id(conn: sqlite3.Connection, comment_ids: list):
|
||||||
with conn:
|
with conn:
|
||||||
curs = conn.cursor()
|
curs = conn.cursor()
|
||||||
curs.executemany(
|
curs.executemany(
|
||||||
"UPDATE COMMENT SET IsHidden = TRUE WHERE CommentId = ?",
|
"UPDATE COMMENT SET IsHidden = 1 WHERE CommentId = ?",
|
||||||
[[c] for c in comment_ids]
|
[[c] for c in comment_ids]
|
||||||
)
|
)
|
||||||
return bool(curs.rowcount)
|
return bool(curs.rowcount)
|
||||||
|
|
Loading…
Reference in a new issue