From 3e08d82c641cbd9e7ad7ef87786c847ec1d57cc3 Mon Sep 17 00:00:00 2001 From: Oleg Silkin Date: Fri, 23 Aug 2019 14:21:34 -0400 Subject: [PATCH] Sqlite v3.22 compatability --- src/database/queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/queries.py b/src/database/queries.py index 6a56f59..5e9f45d 100644 --- a/src/database/queries.py +++ b/src/database/queries.py @@ -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)