summaryrefslogtreecommitdiff
path: root/app/routes/basic.py
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2022-05-09 16:43:19 -0500
committerFivePixels <o5pxels@gmail.com>2022-05-09 16:43:19 -0500
commitd1f8adc797c3c6edd63b34d2da734783d9720138 (patch)
treec5435dd484cf895277bdf7271af36e2664d9cfd1 /app/routes/basic.py
parent5ee44a802512ee98c1330e936e5ec2b3f23659e7 (diff)
downloadStrengthy-d1f8adc797c3c6edd63b34d2da734783d9720138.tar.xz
Strengthy-d1f8adc797c3c6edd63b34d2da734783d9720138.zip
Update records query to return all(), update footer on recent workouts
to include number of recent workouts, programmatically add graphs to home page
Diffstat (limited to 'app/routes/basic.py')
-rw-r--r--app/routes/basic.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/routes/basic.py b/app/routes/basic.py
index b211da7..bd5beb3 100644
--- a/app/routes/basic.py
+++ b/app/routes/basic.py
@@ -17,6 +17,7 @@ def home():
db.session.query(WorkoutRecord)
.filter_by(user_id=current_user.id)
.order_by(WorkoutRecord.finished.desc())
+ .all()
)
# Set records length