Missed a thing from last commit where the tags page is +1 sometimes

This commit is contained in:
socks 2017-07-01 03:57:49 +01:00
parent 372e3b41b3
commit 238a69d346

View file

@ -186,7 +186,7 @@ def tag(tagname):
"latest.html",
title="Tag - {}".format(tagname),
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)
)