From 8b1d909b8a22ed7f522690d02a629cb37dbfecb3 Mon Sep 17 00:00:00 2001 From: socks Date: Sat, 1 Jul 2017 03:57:49 +0100 Subject: [PATCH] Missed a thing from last commit where the tags page is +1 sometimes --- smash/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smash/views.py b/smash/views.py index 17928b8..161fc84 100644 --- a/smash/views.py +++ b/smash/views.py @@ -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) )