filter on approved posts only on leaderboard

This commit is contained in:
lza_menace 2020-12-04 11:20:30 -08:00
parent b5f7fa766f
commit 6be72e3d4c

View file

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