Résoud un bug d'affichage
This commit is contained in:
parent
4516f775cc
commit
5e00e41bf1
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue