def exercise_summary(exercise): start_dt = flask.request.args.get('start_date') end_dt = flask.request.args.get('end_date') sub_exercise_type = flask.request.args.get('sub_exercise_type') exercise_data = data.exercise_summary(db, start_dt, end_dt, exercise, sub_exercise_type) return flask.jsonify({"exercise_data": exercise_data})
def exercise_summary_top(): start_dt = flask.request.args.get('start_date') end_dt = flask.request.args.get('end_date') all_ex = data.exercise_summary(db, start_dt, end_dt) return flask.jsonify({ "exercise_data": all_ex })
def exercise_summary(exercise): start_dt = flask.request.args.get('start_date') end_dt = flask.request.args.get('end_date') sub_exercise_type = flask.request.args.get('sub_exercise_type') exercise_data = data.exercise_summary(db, start_dt, end_dt, exercise, sub_exercise_type) return flask.jsonify({ "exercise_data": exercise_data })