Example #1
0
 def generate(self, obs=1000, metrics=3, dims=2):
     metadata = data_list_generator(obs, metrics, dims)
     return JSONResponse(json.dumps(metadata))
Example #2
0
 def calendar_data(self, obs=1000, metrics=3, dims=2):
     metadata = data_list_generator(obs=obs, metrics=metrics, dims=dims)
     metadata['description'] = "{}{}".format(metadata['description'], calendar_eg)
     return JSONResponse(json.dumps(metadata))