From 372e3b41b3b51c08ab102206a0ca633fc62f4829 Mon Sep 17 00:00:00 2001 From: socks Date: Sat, 1 Jul 2017 03:52:00 +0100 Subject: [PATCH] Fixed number of pages in tag view being +1 sometimes --- smash/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smash/views.py b/smash/views.py index 73a7e6c..17928b8 100644 --- a/smash/views.py +++ b/smash/views.py @@ -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) )