mirror of
https://git.wownero.com/lza_menace/suchwow.git
synced 2024-08-15 01:03:19 +00:00
fix pagination bug - don't round the result
This commit is contained in:
parent
7d75d4228e
commit
d7e74f2932
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def index():
|
|||
page = 1
|
||||
|
||||
posts = Post.select().order_by(Post.timestamp.desc()).paginate(page, itp)
|
||||
total_pages = round(Post.select().count() / itp)
|
||||
total_pages = Post.select().count() / itp
|
||||
return render_template("index.html", posts=posts, page=page, total_pages=total_pages)
|
||||
|
||||
@app.route("/about")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue