diff options
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: |
