Fix error where updating topset details wouldnt persist
This commit is contained in:
3
app.py
3
app.py
@@ -182,8 +182,7 @@ def update_topset(person_id, workout_id, topset_id):
|
|||||||
repetitions = request.form.get("repetitions")
|
repetitions = request.form.get("repetitions")
|
||||||
weight = request.form.get("weight")
|
weight = request.form.get("weight")
|
||||||
|
|
||||||
new_top_set_id = db.update_topset(
|
db.update_topset(exercise_id, repetitions, weight, topset_id)
|
||||||
workout_id, exercise_id, repetitions, weight)
|
|
||||||
exercise = db.get_exercise(exercise_id)
|
exercise = db.get_exercise(exercise_id)
|
||||||
|
|
||||||
return f"""
|
return f"""
|
||||||
|
|||||||
Reference in New Issue
Block a user