def enterExercise(): checkKey = request.get_json() if 'username' in checkKey: return '', DatesController.enterExercise(request.get_json()) else: return '', DatesController.newExercise(request.get_json())
def getProgess(username, exercise, tag): if tag.lower() == "weight_lifting": return jsonify( DatesController.getWeightLiftingProgress(username, exercise)) elif tag.lower() == "cardio": return jsonify(DatesController.getCardioProgress(username, exercise)) elif tag.lower() == "calisthenic": return jsonify( DatesController.getCalisthenicProgress(username, exercise)) else: abort(404)
def getUniqueExercise(user): return jsonify(DatesController.getSetExercises(user))
def getSet(user, date, time, exercise): return jsonify(DatesController.getSets(user, date, time, exercise))
def getList(user, date, time): return jsonify(DatesController.getExerciseList(user, date, time))
def getExercie(bodyPart): return jsonify(DatesController.getExerciseByBodyPart(bodyPart))
def enterCalisthenic(): return '', DatesController.enterCalisthenic(request.get_json())
def enterCardio(): return '', DatesController.enterCardio(request.get_json())
def enterWeight(): return '', DatesController.enterSetWeight(request.get_json())
def getSchedule(username, curDate, curTime): return jsonify(DatesController.getUserSchedule(username, curDate, curTime))
def scheduleNewWorkout(): return '', DatesController.scheduleNewWorkout(request.get_json())