fix pager

This commit is contained in:
2025-07-01 19:02:47 +03:00
parent 18f4b026ea
commit f9256b70db
3 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ def thread(slug):
("id", "<=", after_id),
])
print(post_position)
page = math.floor((post_position + 1) / POSTS_PER_PAGE) + 1
page = math.ceil((post_position) / POSTS_PER_PAGE)
else:
page = max(1, min(page_count, int(request.args.get("page", default = 1))))