From c3badffbc3e3012477831868f72e35bd6cc1fe62 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Sat, 30 Apr 2022 15:33:54 -0500 Subject: Finally figured out /workout/record was missing rows --- app/routes/workout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/routes/workout.py') diff --git a/app/routes/workout.py b/app/routes/workout.py index 1d46aed..c8adc4e 100644 --- a/app/routes/workout.py +++ b/app/routes/workout.py @@ -114,13 +114,13 @@ def workout_record(): # Interate over form exercise entries for ee in form.exercises.entries: + id = ee.data["id"] # And over that exercise's sets for se in ee.sets.entries: lbs = se.data["lbs"] units = se.data["units"] - print(id, lbs, units) if lbs and units: # Add the set to the workout record -- cgit v1.2.3