From e45e87106a51a17c2b19f7c8704b5a0ef436597d Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Wed, 4 Feb 2026 12:22:14 +0100 Subject: Removed 'processed_messages' column --- velascobot2/database.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'velascobot2/database.py') diff --git a/velascobot2/database.py b/velascobot2/database.py index 8be2b8c..6a1b648 100644 --- a/velascobot2/database.py +++ b/velascobot2/database.py @@ -57,7 +57,6 @@ class Database: id TEXT PRIMARY KEY, type TEXT NOT NULL, name TEXT NOT NULL, - processed_messages INTEGER DEFAULT 0, message_period INTEGER DEFAULT 10, answer_chance REAL DEFAULT 0.5, restricted INTEGER DEFAULT 0, @@ -222,14 +221,6 @@ class Database: (int(silenced), chat_id), ) - def incr_processed_messages(self, chat_id: str): - with _SQLiteContextMgr(database=self.db_name) as db: - db.execute( - "UPDATE chats SET processed_messages = processed_messages + ?" - " WHERE id = ?", - (1, chat_id), - ) - def count_graphics(self, chat_id: str) -> int: """Returns the number of graphics stored for a given chat id.""" with _SQLiteContextMgr(database=self.db_name) as db: -- cgit v1.2.3