From cf3dcf3aea3ee13fce470a07f6ffe6a4083f5caf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 6 Mar 2022 03:59:45 +0200 Subject: [PATCH] fsd --- files/routes/subs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/subs.py b/files/routes/subs.py index 29f6bcb625..b98ffe08b6 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -513,5 +513,5 @@ def sub_toggle(mode, v): @app.get("/subs") @auth_desired def subs(v): - subs = g.db.query(Sub, func.count(Submission.sub)).outerjoin(Submission, Sub.name == Submission.sub).group_by(Sub.name).order_by(func.count(Sub.name).desc()).all() + subs = g.db.query(Sub, func.count(Submission.sub)).outerjoin(Submission, Sub.name == Submission.sub).group_by(Sub.name).order_by(func.count(Submission.sub).desc()).all() return render_template('sub/subs.html', v=v, subs=subs) \ No newline at end of file