Rename validation functions

This commit is contained in:
Peter Stockings
2022-11-19 16:04:04 +11:00
parent 21750f3562
commit c5029e8183
4 changed files with 11 additions and 11 deletions

4
app.py
View File

@@ -21,7 +21,7 @@ def dashboard():
@ app.route("/person/<int:person_id>")
@ validate_person
def get_person(person_id):
person = db.get_person_final(person_id)
person = db.get_person(person_id)
return render_template('person.html', person=person)
@@ -35,7 +35,7 @@ def create_workout(person_id):
@ app.route("/person/<int:person_id>/workout/<int:workout_id>")
@ validate_workout
def get_workout(person_id, workout_id):
workout = db.get_workout_final(person_id, workout_id)
workout = db.get_workout(person_id, workout_id)
return render_template('workout.html', workout=workout)