anything over max pages is considered max for diary nav

This commit is contained in:
chimchooree
2020-10-01 23:16:02 -05:00
parent 013ad596f4
commit cbaf5fd116
+2 -2
View File
@@ -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)):