@app.route('/daily', methods=['POST'])
def daily():
    if request.method == 'POST':
        data = json.loads(request.form['data'])
        how = json.loads(request.form['how'])
        df = tr.to_df(data)
        json_return = tr.daily(df=df, how=how)
        resp = Response(json.dumps(json_return), status=200,
                        mimetype='application/json')
        return resp
Return a JSON of daily summed event data
dataset/ETHPy150Open wrobstory/mcflyin/mcflyin/application.py/daily