This commit is contained in:
Friedrich Lindenberg
2016-01-18 11:19:13 +01:00
2 changed files with 36 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class JSONSerializer(Serializer):
def wrap(self, result):
if self.mode == 'item':
result = result[0]
if self.wrap:
if self.export.get_bool('wrap'):
result = {
'count': len(result),
'results': result