From d6557d217594c6b2ec7e17e2cb7d311f73c2126f Mon Sep 17 00:00:00 2001 From: Frisk Date: Sun, 25 Feb 2024 14:30:33 +0100 Subject: [PATCH] Fixed improper SQL query addition --- src/discussions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/discussions.py b/src/discussions.py index edc8cd3..e8b74cd 100644 --- a/src/discussions.py +++ b/src/discussions.py @@ -85,7 +85,9 @@ class Discussions: wiki.script_url))) wiki.statistics.update(last_post=discussion_feed[-1]["id"]) else: - dbmanager.add(wiki.script_url, "0", True) + dbmanager.add(("UPDATE rcgcdb SET postid = $1 WHERE wiki = $2 AND ( postid != '-1' OR postid IS NULL )", ( + "0", + wiki.script_url))) wiki.statistics.update(last_post="0") return comment_events = []