diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-10 10:07:41 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:34 +0200 |
commit | 4ae8a4bb0dedae1ab5a6b66eea3e1b9598a72e9f (patch) | |
tree | efba49b4b4b1e8a38e2ef5f3f685d5171896d957 /service/pixelated/adapter | |
parent | 5542b2fe616db62f5308f5e56117750cec32060a (diff) |
Fixed test_tags integration test.
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/services/mail_service.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py index 1d161958..0c2884ed 100644 --- a/service/pixelated/adapter/services/mail_service.py +++ b/service/pixelated/adapter/services/mail_service.py @@ -53,8 +53,8 @@ class MailService(object): raise ValueError('None of the following words can be used as tags: ' + ' '.join(reserved_words)) new_tags = self._favor_existing_tags_casing(new_tags) mail = yield self.mail(mail_id) - yield mail.update_tags(set(new_tags)) - self.search_engine.index_mail(mail) + mail.tags |= set(new_tags) + yield self.mail_store.update_mail(mail) defer.returnValue(mail) |