diff --git a/fakedata.py b/fakedata.py index e344be5..7cf9bb3 100644 --- a/fakedata.py +++ b/fakedata.py @@ -156,4 +156,9 @@ for i in arrow.Arrow.range('day', startdate, enddate): #print(json.dumps(tuple(dist), indent=2)) prodpoints.extend(dist) +for i in { 'prodpoints', 'prodindex', 'conspoints', 'consindex',}: + v = locals()[i] + v = [ (x, int(y)) for x, y in v ] + locals()[i] = v + print('fakedata =', json.dumps(dict(production=prodpoints, prodindex=prodindex, consumption=conspoints, consindex=consindex), default=serializearrowasmili, indent=2))