Fixed number of pages in tag view being +1 sometimes
This commit is contained in:
parent
aabe9179cd
commit
314d2bb688
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ def tag_page(tagname, page):
|
|||
"latest.html",
|
||||
title="Tag - {} - page {}".format(tagname, page),
|
||||
quotes=tag.quotes,
|
||||
numpages=1 + allquotes//10,
|
||||
numpages=1 + allquotes//10 if allquotes%10 != 0 else allquotes//10,
|
||||
curpage=0,
|
||||
page_type="tag/{}".format(tagname)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue