From 01f4ba64576a21d68ce79acbd8cefd0f2f5dc375 Mon Sep 17 00:00:00 2001 From: Patrick Maia and Victor Shyba Date: Fri, 5 Sep 2014 23:35:22 +0000 Subject: #51 - uses list every time we need to convert to json --- service/pixelated/adapter/tag.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'service/pixelated/adapter/tag.py') diff --git a/service/pixelated/adapter/tag.py b/service/pixelated/adapter/tag.py index 45a972ab..ba545043 100644 --- a/service/pixelated/adapter/tag.py +++ b/service/pixelated/adapter/tag.py @@ -62,12 +62,11 @@ class Tag: 'read': 0, 'starred': 0, 'replied': 0}, - 'mails': self.mails + 'mails': list(self.mails) } def as_json_string(self): tag_dict = self.as_dict() - tag_dict['mails'] = list(self.mails) return json.dumps(tag_dict) def __repr__(self): -- cgit v1.2.3