From fc6674d9eb26297bf275ce218ced62cd12a54bfc Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sun, 16 Aug 2020 02:24:14 -0700 Subject: [PATCH] remove unused var, make images larger, and try to fix sorting --- suchwow/routes/post.py | 3 +-- suchwow/templates/post/read.html | 2 +- suchwow/templates/post/top.html | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/suchwow/routes/post.py b/suchwow/routes/post.py index e1321fc..091efdc 100644 --- a/suchwow/routes/post.py +++ b/suchwow/routes/post.py @@ -15,7 +15,6 @@ def top(): top_posts = {} posts = Post.select() for post in posts: - balance = float(wownero.Wallet().balances(post.account_index)[1]) transfers = [] incoming = wownero.Wallet().incoming_transfers(post.account_index) if "transfers" in incoming: @@ -25,7 +24,7 @@ def top(): if total > 0: top_posts[post.id] = { "post": post, - "balance": total + "total": float(total) } return render_template("post/top.html", posts=top_posts) diff --git a/suchwow/templates/post/read.html b/suchwow/templates/post/read.html index fbaa697..5e31542 100644 --- a/suchwow/templates/post/read.html +++ b/suchwow/templates/post/read.html @@ -14,7 +14,7 @@

{{ post.text }}

Submitted by {{ post.submitter }} at {{ post.timestamp }}


- +
diff --git a/suchwow/templates/post/top.html b/suchwow/templates/post/top.html index 3957174..a513886 100644 --- a/suchwow/templates/post/top.html +++ b/suchwow/templates/post/top.html @@ -10,8 +10,8 @@ {% if posts %} {% else %}