From ae3eb5ff7ab20b4c7033c616fb33d790da83c022 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 10 Jun 2016 20:40:04 +0200 Subject: paginate filtered results properly --- app.py | 1 + templates/index.html | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 9de83ec..88288da 100644 --- a/app.py +++ b/app.py @@ -452,6 +452,7 @@ def page(num): render_template( 'index.html', currentpage=num, + query=str(request.query_string, 'utf-8'), tag=search, perpage=PERPAGE, jokes=jokes, diff --git a/templates/index.html b/templates/index.html index dc75288..c83d78c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -35,7 +35,7 @@ {% endif %}
- file_download + file_download
@@ -111,11 +111,11 @@
-- cgit v1.3.1