From f94ff8cb9e0da691e9c949cfe0a2862e148319e6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 24 Aug 2021 06:38:26 +0200 Subject: [PATCH] fdfd --- files/routes/posts.py | 2 -- files/templates/submission.html | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 9097864cee..0038b9822f 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -81,8 +81,6 @@ def post_id(pid, anything=None, v=None): post = get_post(pid, v=v) - if v and v.id == 1: print(post.realbody(v)) - if v: votes = g.db.query(CommentVote).filter_by(user_id=v.id).subquery() diff --git a/files/templates/submission.html b/files/templates/submission.html index 3afad1b1a9..6dd68b132b 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -312,7 +312,7 @@ {% endif %} {% endif %} - {% if p.realbody(v) != None %} + {% if len(p.realbody(v)) > 0 %}
{{p.realbody(v) | safe}}