fix pager
This commit is contained in:
@ -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))))
|
||||
|
||||
|
Reference in New Issue
Block a user