filter on approved posts only on leaderboard

graphs-n-shit
lza_menace 4 years ago
parent b5f7fa766f
commit 6be72e3d4c

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

Loading…
Cancel
Save