diff options
author | Patrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com> | 2014-09-06 23:18:39 +0000 |
---|---|---|
committer | Patrick Maia <pmaia@thoughtworks.com> | 2014-09-06 23:18:39 +0000 |
commit | 0c7ac76b4e1c568602fbc75194e39ebf5b676303 (patch) | |
tree | 2831a234fba18057e90977ea2e80b0e49e356bd1 /service/pixelated | |
parent | 01f4ba64576a21d68ce79acbd8cefd0f2f5dc375 (diff) |
#51 - PixelatedMail.update_tags expects a set (a list was being sent). Uses the right mail_id for PixelatedMailbox.notify_tags_updated
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/mail_service.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/adapter/mail_service.py b/service/pixelated/adapter/mail_service.py index 2c67ae2d..7f0d111b 100644 --- a/service/pixelated/adapter/mail_service.py +++ b/service/pixelated/adapter/mail_service.py @@ -39,8 +39,8 @@ class MailService: def update_tags(self, mail_id, new_tags): mail = self.mail(mail_id) - added, removed = mail.update_tags(new_tags) - self.mailbox.notify_tags_updated(added, removed, self.ident) + added, removed = mail.update_tags(set(new_tags)) + self.mailbox.notify_tags_updated(added, removed, mail_id) return new_tags def mail(self, mail_id): |