diff --git a/suchwow/app.py b/suchwow/app.py index 90e8398..430dc0c 100644 --- a/suchwow/app.py +++ b/suchwow/app.py @@ -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")