diff options
Diffstat (limited to 'alot/db/thread.py')
-rw-r--r-- | alot/db/thread.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alot/db/thread.py b/alot/db/thread.py index 37cc5fc7..65e74a35 100644 --- a/alot/db/thread.py +++ b/alot/db/thread.py @@ -234,7 +234,6 @@ class Thread: :returns: True if this thread matches the given query, False otherwise :rtype: bool """ - thread_query = 'thread:{tid} AND {subquery}'.format(tid=self.id, - subquery=query) + thread_query = 'thread:%s AND (%s)' % (self.id, query) num_matches = self._dbman.count_messages(thread_query) return num_matches > 0 |