From d2c3fa7b61f0f6419d68b0c2f5340f74a4207451 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 7 Feb 2024 06:16:17 +0200 Subject: [PATCH] fix 500 error --- files/routes/holes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/holes.py b/files/routes/holes.py index 043f07962..5bc797400 100644 --- a/files/routes/holes.py +++ b/files/routes/holes.py @@ -736,7 +736,7 @@ def hole_marsey(v, hole): @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @auth_required def subs(v): - holes = g.db.query(Hole, func.count(Post.hole)).outerjoin(Post, Hole.name == Post.hole).group_by(Hole.name).order_by(hole.created_utc).all() + holes = g.db.query(Hole, func.count(Post.hole)).outerjoin(Post, Hole.name == Post.hole).group_by(Hole.name).order_by(Hole.created_utc).all() total_users = g.db.query(User).count() return render_template('hole/holes.html', v=v, holes=holes, total_users=total_users)