diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-20 22:04:43 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-01-20 22:04:43 +0100 |
commit | 21843511ef9e0482da917c9e01f1add1949fabde (patch) | |
tree | d6d5264d1641671c1171195c44ef2b7f490b6fd7 /alot/db | |
parent | 6b2a8ee809353f8a18f0bc6ac4b9af30e66d8762 (diff) |
buffers: make get_info() asynchronous
Allows computing message/thread counts asynchronously in a separate
thread.
Diffstat (limited to 'alot/db')
-rw-r--r-- | alot/db/manager.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/alot/db/manager.py b/alot/db/manager.py index 728dcddb..6477d696 100644 --- a/alot/db/manager.py +++ b/alot/db/manager.py @@ -154,8 +154,6 @@ class DBManager: def _db_ro(self): return closing(Database(path = self.path, mode = Database.MODE.READ_ONLY)) - - def count_messages(self, querystring): """returns number of messages that match `querystring`""" with self._db_ro() as db: |