From 72ed7d40ac68d7e91f41e94fbcf6cb7a3e28433a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 6 Feb 2020 14:40:05 +0100 Subject: db: drop useless getters --- alot/buffers/thread.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alot/buffers') diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py index 41766852..6434bb04 100644 --- a/alot/buffers/thread.py +++ b/alot/buffers/thread.py @@ -34,7 +34,7 @@ class ThreadBuffer(Buffer): Buffer.__init__(self, ui, self.body) def __str__(self): - return '[thread] %s (%d message%s)' % (self.thread.get_subject(), + return '[thread] %s (%d message%s)' % (self.thread.subject, self.message_count, 's' * (self.message_count > 1)) @@ -46,9 +46,9 @@ class ThreadBuffer(Buffer): def get_info(self): info = {} - info['subject'] = self.thread.get_subject() + info['subject'] = self.thread.subject info['authors'] = self.thread.get_authors_string() - info['tid'] = self.thread.get_thread_id() + info['tid'] = self.thread.id info['message_count'] = self.message_count info['thread_tags'] = self.translated_tags_str() info['intersection_tags'] = self.translated_tags_str(intersection=True) -- cgit v1.2.3