fix pagination bug - don't round the result

graphs-n-shit
lza_menace 4 years ago
parent 7d75d4228e
commit d7e74f2932

@ -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…
Cancel
Save