diff options
author | pazz <patricktotzke@gmail.com> | 2011-08-02 22:04:00 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-08-02 22:04:00 +0100 |
commit | 7d95af3e5a9de95b61a9d10307a8652463f5d135 (patch) | |
tree | 37478e71de013d557a20fd76a7fa9e25067029ca | |
parent | 83e1cc9acb1107182faaca455fb61c254f86e3a2 (diff) |
force decoding from utf8 of tags
-rw-r--r-- | alot/db.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -147,7 +147,7 @@ class DBManager: def get_all_tags(self): """returns all tags as list of strings""" db = Database(path=self.path) - return list(db.get_all_tags()) + return [t.decode(DB_ENC) for t in db.get_all_tags()] def query(self, querystring): """creates notmuch.Query objects on demand @@ -184,7 +184,7 @@ class Thread: ts = thread.get_oldest_date() self._oldest_date = datetime.fromtimestamp(ts) self._newest_date = datetime.fromtimestamp(thread.get_newest_date()) - self._tags = set(thread.get_tags()) + self._tags = set([t.decode(DB_ENC) for t in thread.get_tags()]) self._messages = {} # this maps messages to its children self._toplevel_messages = [] |