diff options
author | Patrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com> | 2014-09-07 16:57:55 +0000 |
---|---|---|
committer | Patrick Maia <pmaia@thoughtworks.com> | 2014-09-07 16:57:55 +0000 |
commit | 49dfdf8ad54860ba5b518681f17574b86054d384 (patch) | |
tree | aacbb34c5bdddf6435867610ff2a63877efd9495 /service/pixelated/adapter | |
parent | ff01686c1b38d26b0ef54833cf3463ab0bf73bf8 (diff) |
#51 - uses TagIndex.add method to set special tags
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/pixelated_mailbox.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/service/pixelated/adapter/pixelated_mailbox.py b/service/pixelated/adapter/pixelated_mailbox.py index 739bc215..61fd42dc 100644 --- a/service/pixelated/adapter/pixelated_mailbox.py +++ b/service/pixelated/adapter/pixelated_mailbox.py @@ -29,8 +29,7 @@ class PixelatedMailbox: self.leap_mailbox = leap_mailbox self.tag_index = TagIndex(index_file_path) for tag in self.SPECIAL_TAGS: - if tag not in self.tag_index.values(): - self.tag_index.set(tag) + self.tag_index.add(tag) @property def messages(self): |