From cbaf5fd116a9a99a90b3ba55f08143f23ddd796d Mon Sep 17 00:00:00 2001 From: chimchooree Date: Thu, 1 Oct 2020 23:16:02 -0500 Subject: [PATCH] anything over max pages is considered max for diary nav --- src/views/diary.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/diary.tpl b/src/views/diary.tpl index 0344c38..07625e6 100644 --- a/src/views/diary.tpl +++ b/src/views/diary.tpl @@ -7,8 +7,8 @@ if page < 0: page = 0 end - if page > total: - page = total + if page > total - 1: + page = total - 1 end %> % for i in range(max(0,page - limit), min(total,page + limit)):