minor fixes

This commit is contained in:
Lera Elvoé 2025-07-01 18:27:52 +03:00
parent 9ae55c92ba
commit e0d1abc1e9
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc
2 changed files with 2 additions and 3 deletions

View File

@ -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()

View File

@ -45,7 +45,7 @@
</div>
</nav>
{% 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 %}
</main>
@ -55,7 +55,7 @@
{% if can_post %}
<h1>Respond to "{{ thread.title }}"</h1>
{{ babycode_editor_form(ta_name = post_content)}}
{{ babycode_editor_form(ta_name = "post_content")}}
{% endif %}
{% endblock %}
<dialog id="delete-dialog">