From b1be914b75855ead0d6918d2a8e581c28134f40e Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sun, 20 Nov 2022 10:23:30 +1100 Subject: [PATCH] Fix error where updating topset details wouldnt persist --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.py b/app.py index c2877cd..9aa6a12 100644 --- a/app.py +++ b/app.py @@ -182,8 +182,7 @@ def update_topset(person_id, workout_id, topset_id): repetitions = request.form.get("repetitions") weight = request.form.get("weight") - new_top_set_id = db.update_topset( - workout_id, exercise_id, repetitions, weight) + db.update_topset(exercise_id, repetitions, weight, topset_id) exercise = db.get_exercise(exercise_id) return f"""