Fix flake.
This commit is contained in:
parent
d56b767479
commit
fcbaf977c0
@ -27,7 +27,7 @@ class JSONSerializer(Serializer):
|
|||||||
result = {
|
result = {
|
||||||
'count': self.query.count,
|
'count': self.query.count,
|
||||||
'results': result
|
'results': result
|
||||||
}
|
}
|
||||||
meta = self.export.get('meta', {})
|
meta = self.export.get('meta', {})
|
||||||
if meta is not None:
|
if meta is not None:
|
||||||
result['meta'] = meta
|
result['meta'] = meta
|
||||||
@ -38,7 +38,7 @@ class JSONSerializer(Serializer):
|
|||||||
result = self.wrap(result)
|
result = self.wrap(result)
|
||||||
|
|
||||||
fh = open(path, 'wb') if self.fileobj is None else self.fileobj
|
fh = open(path, 'wb') if self.fileobj is None else self.fileobj
|
||||||
|
|
||||||
data = json.dumps(result,
|
data = json.dumps(result,
|
||||||
cls=JSONEncoder,
|
cls=JSONEncoder,
|
||||||
indent=self.export.get_int('indent'))
|
indent=self.export.get_int('indent'))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user