anything over max pages is considered max for diary nav
This commit is contained in:
+2
-2
@@ -7,8 +7,8 @@
|
|||||||
if page < 0:
|
if page < 0:
|
||||||
page = 0
|
page = 0
|
||||||
end
|
end
|
||||||
if page > total:
|
if page > total - 1:
|
||||||
page = total
|
page = total - 1
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
% for i in range(max(0,page - limit), min(total,page + limit)):
|
% for i in range(max(0,page - limit), min(total,page + limit)):
|
||||||
|
|||||||
Reference in New Issue
Block a user