From 73d5c0d93c15bffe1e1e8cd58c8f3a1d0ed17271 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 3 Mar 2020 01:41:14 -0800 Subject: [PATCH] Firefox doesn't handle a 4MB line very well, so indent the json.. --- fakedata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fakedata.py b/fakedata.py index 8a50189..e344be5 100644 --- a/fakedata.py +++ b/fakedata.py @@ -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))