diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-02-06 14:40:05 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-02-06 17:11:05 +0100 |
commit | 72ed7d40ac68d7e91f41e94fbcf6cb7a3e28433a (patch) | |
tree | 08395b57acf97a9aa83bb545645241259b9b28fb /alot/buffers | |
parent | 8b787ec521849cb854154857196734b7a298611e (diff) |
db: drop useless getters
Diffstat (limited to 'alot/buffers')
-rw-r--r-- | alot/buffers/thread.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |