From 315e4103f6eefb0a9c8bf08f9e3b36b3b842accf Mon Sep 17 00:00:00 2001 From: chimchooree Date: Sun, 4 Oct 2020 10:51:24 -0500 Subject: [PATCH] wrong numbers fill out left side when page is high --- src/views/diary.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/diary.tpl b/src/views/diary.tpl index b76ca4b..f8ee377 100644 --- a/src/views/diary.tpl +++ b/src/views/diary.tpl @@ -29,9 +29,9 @@ % end % # fill out number cluster to the left when page is high - % if page >= max_pages - cluster: - % for j in range(page - cluster): - {{page + j + cluster + 1}} + % if page > max_pages - cluster: + % for j in range(cluster - max_pages + page): + {{page + j + cluster + 1}} % end % end