forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2024-02-07 06:16:17 +02:00
parent 8940dc8be8
commit d2c3fa7b61
1 changed files with 1 additions and 1 deletions

View File

@ -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)