|
|
@ -22,11 +22,8 @@ def top():
|
|
|
|
transfers.append(wownero.from_atomic(xfer["amount"]))
|
|
|
|
transfers.append(wownero.from_atomic(xfer["amount"]))
|
|
|
|
total = sum(transfers)
|
|
|
|
total = sum(transfers)
|
|
|
|
if total > 0:
|
|
|
|
if total > 0:
|
|
|
|
top_posts[post.id] = {
|
|
|
|
top_posts[float(total)] = post
|
|
|
|
"post": post,
|
|
|
|
return render_template("post/top.html", posts=sorted(top_posts.items(), reverse=True))
|
|
|
|
"total": float(total)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return render_template("post/top.html", posts=top_posts)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@bp.route("/post/<id>")
|
|
|
|
@bp.route("/post/<id>")
|
|
|
|
def read(id):
|
|
|
|
def read(id):
|
|
|
|