diff --git a/app/routes/threads.py b/app/routes/threads.py index f071e86..7421ac9 100644 --- a/app/routes/threads.py +++ b/app/routes/threads.py @@ -36,7 +36,6 @@ def thread(slug): page = max(1, min(page_count, int(request.args.get("page", default = 1)))) posts = thread.get_posts(POSTS_PER_PAGE, (page - 1) * POSTS_PER_PAGE) - print(posts) topic = Topics.find({"id": thread.topic_id}) other_topics = Topics.select() diff --git a/app/templates/threads/thread.html b/app/templates/threads/thread.html index 66d02c4..87f8e76 100644 --- a/app/templates/threads/thread.html +++ b/app/templates/threads/thread.html @@ -45,7 +45,7 @@ {% for post in posts %} - {{ full_post(post = post, active_user = active_user, is_latest = loop.index0 == (posts | length)) }} + {{ full_post(post = post, active_user = active_user, is_latest = loop.index == (posts | length)) }} {% endfor %} @@ -55,7 +55,7 @@ {% if can_post %}