From 6be72e3d4cc2b85af635f72715192f54d2241e3f Mon Sep 17 00:00:00 2001 From: lza_menace Date: Fri, 4 Dec 2020 11:20:30 -0800 Subject: [PATCH] filter on approved posts only on leaderboard --- suchwow/routes/leaderboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suchwow/routes/leaderboard.py b/suchwow/routes/leaderboard.py index e3ff737..22dba58 100644 --- a/suchwow/routes/leaderboard.py +++ b/suchwow/routes/leaderboard.py @@ -11,7 +11,7 @@ bp = Blueprint("leaderboard", "leaderboard") @bp.route("/leaderboard") def leaderboard(): top_posters = {} - posts = Post.select() + posts = Post.select().where(Post.approved==True) for post in posts: transfers = [] incoming = wownero.Wallet().incoming_transfers(post.account_index)