diff options
author | Vicente Luchi <vicente.luchi@gmail.com> | 2015-01-24 17:01:40 -0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2015-01-24 17:01:40 -0200 |
commit | 2fb15ab3f6ed53434803791df9a38879e44b1195 (patch) | |
tree | 4ee91b0e560d5721a5ac725befd5a235e3dabc5a /service/pixelated | |
parent | cc2886f1346105a54f2b1182fa1f5d38214f9d0e (diff) |
#184 - not creating empty tags anymore
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/resources/mail_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/resources/mail_resource.py b/service/pixelated/resources/mail_resource.py index 03873ffb..396ccd74 100644 --- a/service/pixelated/resources/mail_resource.py +++ b/service/pixelated/resources/mail_resource.py @@ -15,7 +15,7 @@ class MailTags(Resource): def render_POST(self, request): content_dict = json.loads(request.content.read()) - new_tags = map(lambda tag: tag.lower(), content_dict['newtags']) + new_tags = [x.lower() for x in content_dict['newtags'] if x != ''] try: self._mail_service.update_tags(self._mail_id, new_tags) mail = self._mail_service.mail(self._mail_id) |