|
|
@@ -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)) |