Browse Source

Firefox doesn't handle a 4MB line very well, so indent the json..

main
John-Mark Gurney 4 years ago
parent
commit
73d5c0d93c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      fakedata.py

+ 1
- 1
fakedata.py View File

@@ -156,4 +156,4 @@ for i in arrow.Arrow.range('day', startdate, enddate):
#print(json.dumps(tuple(dist), indent=2))
prodpoints.extend(dist)

print('fakedata =', json.dumps(dict(production=prodpoints, prodindex=prodindex, consumption=conspoints, consindex=consindex), default=serializearrowasmili))
print('fakedata =', json.dumps(dict(production=prodpoints, prodindex=prodindex, consumption=conspoints, consindex=consindex), default=serializearrowasmili, indent=2))

Loading…
Cancel
Save