From 9d7d13a80aeaa4b60b55659a4ee4fb24ab6248ee Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 15 Aug 2016 19:27:09 +0200 Subject: introduce featured tags --- app.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app.py') diff --git a/app.py b/app.py index 28d2906..8f66efc 100644 --- a/app.py +++ b/app.py @@ -529,6 +529,7 @@ def page(num): sortmethod = str(request.args.get('sort')) or 'rank' if search: # TODO find a cleaner way + # visual: #, actual: _ search = re.sub(r"^" + Markup.tagmark, "#", search) search = search.split(Markup.spacemark) perpage = abs(int(request.args.get('perpage') or 10)) @@ -546,6 +547,7 @@ def page(num): jokes=jokes, abusemail=config['abusemail'], title=config['title'], + featured=config['featured'], user=user)) resp.headers.set('X-SmoothState-Location', request.path + "?" + -- cgit v1.3.1