summaryrefslogtreecommitdiff
path: root/app/routes/workout.py
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-04-30 15:33:54 -0500
committerstilbruch <stilbruch@protonmail.com>2022-04-30 15:33:54 -0500
commitc3badffbc3e3012477831868f72e35bd6cc1fe62 (patch)
tree764ba8c8f0f408027dd910af683fd9195da58dd3 /app/routes/workout.py
parentf093b46d5ba76faa66a43c95c22f9240f8870902 (diff)
downloadStrengthy-c3badffbc3e3012477831868f72e35bd6cc1fe62.tar.xz
Strengthy-c3badffbc3e3012477831868f72e35bd6cc1fe62.zip
Finally figured out /workout/record was missing rows
Diffstat (limited to 'app/routes/workout.py')
-rw-r--r--app/routes/workout.py2
1 files changed, 1 insertions, 1 deletions
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