changeset 2478:e5acc83a9d51

tools (common/data_objects): use lists instead of generators for BlogItem.groups and BlogItem.tags
author Goffi <goffi@goffi.org>
date Sun, 21 Jan 2018 20:20:38 +0100
parents cae326e962c3
children 0d6c53e6c591
files src/tools/common/data_objects.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/tools/common/data_objects.py	Sun Jan 21 13:04:16 2018 +0100
+++ b/src/tools/common/data_objects.py	Sun Jan 21 20:20:38 2018 +0100
@@ -87,13 +87,13 @@
     @property
     def tags(self):
         if self._tags is None:
-            self._tags = data_format.dict2iter('tag', self.mb_data)
+            self._tags = list(data_format.dict2iter('tag', self.mb_data))
         return self._tags
 
     @property
     def groups(self):
         if self._groups is None:
-            self._groups = data_format.dict2iter('group', self.mb_data)
+            self._groups = list(data_format.dict2iter('group', self.mb_data))
         return self._groups
 
     @property