diff --git a/src/queue_handler.py b/src/queue_handler.py index d218d00..4bb9232 100644 --- a/src/queue_handler.py +++ b/src/queue_handler.py @@ -17,7 +17,7 @@ class UpdateDB: def update_db(self): for update in self.updated: update_type = "postid" if update[2] is not None else "rcid" - db_cursor.execute("UPDATE rcgcdw SET {} = ? WHERE wiki = ?".format(update_type), (update[1],update[0],)) + db_cursor.execute("UPDATE rcgcdw SET {} = ? WHERE wiki = ? AND NOT ? = -1".format(update_type), (update[1], update[0], update_type)) db_connection.commit() self.clear_list()