Résoud un bug d'affichage

This commit is contained in:
Darks 2019-12-10 19:03:08 +01:00
parent 4516f775cc
commit 5e00e41bf1
Signed by: Darks
GPG Key ID: F61F10FA138E797C
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ def forum_topic(f, t):
db.session.commit()
if request.args.get('page') == "last":
page = t.thread.comments.count() // V5Config.COMMENTS_PER_PAGE + 1
page = (t.thread.comments.count() - 1) \
// V5Config.COMMENTS_PER_PAGE + 1
else:
page = request.args.get('page', 1, type=int)