From 8b24faf9fd4281bcee9df57823423a92b01085a6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 2 May 2022 20:56:10 +0200 Subject: [PATCH] sdf --- files/routes/static.py | 4 +--- files/templates/badges.html | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index e91367e9d..bb9670fd5 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -496,8 +496,6 @@ def robots_txt(): @auth_required @cache.memoize(timeout=3600) def badges(v): - nonlurk_truecoins = 100 - badges = g.db.query(BadgeDef).order_by(BadgeDef.id).all() counts_raw = g.db.query(Badge.badge_id, func.count()).group_by(Badge.badge_id).all() users = g.db.query(User.id).count() @@ -506,7 +504,7 @@ def badges(v): for c in counts_raw: counts[c[0]] = (c[1], float(c[1]) * 100 / max(users, 1)) - return render_template("badges.html", v=v, badges=badges, counts=counts, nonlurk=users, nonlurk_tc=nonlurk_truecoins) + return render_template("badges.html", v=v, badges=badges, counts=counts) @app.get("/blocks") @auth_required diff --git a/files/templates/badges.html b/files/templates/badges.html index b7e72b1e1..aebeb87b4 100644 --- a/files/templates/badges.html +++ b/files/templates/badges.html @@ -7,7 +7,6 @@

User Badges

This page describes the requirements for obtaining all profile badges.
-
Rarity is the ratio of badge quantity to the number of non-lurkers (truescore ≥ {{ nonlurk_tc }}): {{ nonlurk }}.