From 0c7ac76b4e1c568602fbc75194e39ebf5b676303 Mon Sep 17 00:00:00 2001 From: Patrick Maia and Victor Shyba Date: Sat, 6 Sep 2014 23:18:39 +0000 Subject: #51 - PixelatedMail.update_tags expects a set (a list was being sent). Uses the right mail_id for PixelatedMailbox.notify_tags_updated --- service/pixelated/adapter/mail_service.py | 4 ++-- 1 file 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): -- cgit v1.2.3