diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-04-30 13:41:38 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-04-30 13:41:38 -0500 |
| commit | f093b46d5ba76faa66a43c95c22f9240f8870902 (patch) | |
| tree | d717fa02241532031832c280e12825dc53d0f6db /app/routes | |
| parent | 11ca7472f0736ed7f7cc4447f8fa59cd8765eb2f (diff) | |
| download | Strengthy-f093b46d5ba76faa66a43c95c22f9240f8870902.tar.xz Strengthy-f093b46d5ba76faa66a43c95c22f9240f8870902.zip | |
Fix navbar burger and some other stuff
Diffstat (limited to 'app/routes')
| -rw-r--r-- | app/routes/basic.py | 4 | ||||
| -rw-r--r-- | app/routes/workout.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/routes/basic.py b/app/routes/basic.py index f6cb005..684daf2 100644 --- a/app/routes/basic.py +++ b/app/routes/basic.py @@ -15,8 +15,8 @@ def home(): # Prepare so we don't have to do this in the template records = ( db.session.query(WorkoutRecord) - .join(Workout) - .filter(Workout.user_id == current_user.id) + .filter_by(user_id=current_user.id) + .order_by(WorkoutRecord.finished.desc()) ) return render_template("home.html", records=records) diff --git a/app/routes/workout.py b/app/routes/workout.py index 9b46694..1d46aed 100644 --- a/app/routes/workout.py +++ b/app/routes/workout.py @@ -120,6 +120,7 @@ def workout_record(): 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 |
