Sqlite v3.22 compatability

This commit is contained in:
Oleg Silkin 2019-08-23 14:21:34 -04:00
parent e943527e8c
commit 3e08d82c64

View file

@ -203,7 +203,7 @@ def hide_comments_by_id(conn: sqlite3.Connection, comment_ids: list):
with conn:
curs = conn.cursor()
curs.executemany(
"UPDATE COMMENT SET IsHidden = TRUE WHERE CommentId = ?",
"UPDATE COMMENT SET IsHidden = 1 WHERE CommentId = ?",
[[c] for c in comment_ids]
)
return bool(curs.rowcount)