|
|
@ -15,7 +15,6 @@ def top():
|
|
|
|
top_posts = {}
|
|
|
|
top_posts = {}
|
|
|
|
posts = Post.select()
|
|
|
|
posts = Post.select()
|
|
|
|
for post in posts:
|
|
|
|
for post in posts:
|
|
|
|
balance = float(wownero.Wallet().balances(post.account_index)[1])
|
|
|
|
|
|
|
|
transfers = []
|
|
|
|
transfers = []
|
|
|
|
incoming = wownero.Wallet().incoming_transfers(post.account_index)
|
|
|
|
incoming = wownero.Wallet().incoming_transfers(post.account_index)
|
|
|
|
if "transfers" in incoming:
|
|
|
|
if "transfers" in incoming:
|
|
|
@ -25,7 +24,7 @@ def top():
|
|
|
|
if total > 0:
|
|
|
|
if total > 0:
|
|
|
|
top_posts[post.id] = {
|
|
|
|
top_posts[post.id] = {
|
|
|
|
"post": post,
|
|
|
|
"post": post,
|
|
|
|
"balance": total
|
|
|
|
"total": float(total)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return render_template("post/top.html", posts=top_posts)
|
|
|
|
return render_template("post/top.html", posts=top_posts)
|
|
|
|
|
|
|
|
|
|
|
|