summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/tag.py
diff options
context:
space:
mode:
authorPatrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com>2014-09-05 23:35:22 +0000
committerPatrick Maia <pmaia@thoughtworks.com>2014-09-05 23:35:22 +0000
commit01f4ba64576a21d68ce79acbd8cefd0f2f5dc375 (patch)
tree36a32871e2ea6d891b7354df2f042f003a854e29 /service/pixelated/adapter/tag.py
parent3c79a54ab332e15f31a4a57a4a9baabf4b62e26a (diff)
#51 - uses list every time we need to convert to json
Diffstat (limited to 'service/pixelated/adapter/tag.py')
-rw-r--r--service/pixelated/adapter/tag.py3
1 files changed, 1 insertions, 2 deletions
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):