diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-02-04 12:22:14 +0100 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-02-04 12:22:14 +0100 |
| commit | e45e87106a51a17c2b19f7c8704b5a0ef436597d (patch) | |
| tree | e49988c5dffa19d8c26065bb65e6332e0d57aad4 /velascobot2/database.py | |
| parent | 5ddae470ce5ffbf8d6bb1bedc3b6b411aff802bc (diff) | |
| download | velascobot2-e45e87106a51a17c2b19f7c8704b5a0ef436597d.tar.xz velascobot2-e45e87106a51a17c2b19f7c8704b5a0ef436597d.zip | |
Removed 'processed_messages' column
Diffstat (limited to 'velascobot2/database.py')
| -rw-r--r-- | velascobot2/database.py | 9 |
1 files changed, 0 insertions, 9 deletions
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: |
