summaryrefslogtreecommitdiff
path: root/app/routes
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonail.com>2022-05-09 17:59:40 -0500
committerstilbruch <stilbruch@protonail.com>2022-05-09 17:59:40 -0500
commit99f2a95682b2acc03c595211a33cb1715abac429 (patch)
tree9d21332e623cd91e8cf7fa15680dad28f497d847 /app/routes
parent9ba45476efa21791c2c69a083d90785a436435f7 (diff)
downloadStrengthy-99f2a95682b2acc03c595211a33cb1715abac429.tar.xz
Strengthy-99f2a95682b2acc03c595211a33cb1715abac429.zip
Fix blank graph bug
Diffstat (limited to 'app/routes')
-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 bd5beb3..584d837 100644
--- a/app/routes/basic.py
+++ b/app/routes/basic.py
@@ -37,6 +37,7 @@ def home():
.filter(SetRecord.exercise_id == Exercise.id)
.group_by(Exercise.id)
.order_by(db.func.count(SetRecord.id).desc())
+ .having(db.func.count(SetRecord.id) > 1)
.limit(3)
.all()
)