Create seperate page view for workout (WIP)
This commit is contained in:
5
app.py
5
app.py
@@ -433,6 +433,11 @@ def get_stats_for_person(person_id):
|
||||
stats = db.stats.fetch_stats_for_person(person_id)
|
||||
return render_template('partials/stats.html', stats=stats)
|
||||
|
||||
@ app.route("/person/<int:person_id>/workout/<int:workout_id>", methods=['GET'])
|
||||
def show_workout(person_id, workout_id):
|
||||
view_model = db.workout.get(person_id, workout_id)
|
||||
return render_template('workout.html', **view_model)
|
||||
|
||||
|
||||
@app.teardown_appcontext
|
||||
def closeConnection(exception):
|
||||
|
||||
Reference in New Issue
Block a user