mirror of https://gitlab.com/bashrc2/epicyon
No negative page numbers
parent
3de6c87e51
commit
3fe81d8d81
2
posts.py
2
posts.py
|
@ -2510,6 +2510,8 @@ def createBoxIndexed(recentPostsCache: {},
|
||||||
|
|
||||||
pageStr = '?page=true'
|
pageStr = '?page=true'
|
||||||
if pageNumber:
|
if pageNumber:
|
||||||
|
if pageNumber < 1:
|
||||||
|
pageNumber = 1
|
||||||
try:
|
try:
|
||||||
pageStr = '?page=' + str(pageNumber)
|
pageStr = '?page=' + str(pageNumber)
|
||||||
except BaseException:
|
except BaseException:
|
||||||
|
|
Loading…
Reference in New Issue