diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-15 19:27:09 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-15 19:27:09 +0200 |
| commit | 9d7d13a80aeaa4b60b55659a4ee4fb24ab6248ee (patch) | |
| tree | 7cef828f908b96b55559d6ae8b97a70b9443cd36 /app.py | |
| parent | ef35bb66e34354c1d6987acb4d2e1d3e6aae2664 (diff) | |
| download | jokevote-9d7d13a80aeaa4b60b55659a4ee4fb24ab6248ee.tar.gz jokevote-9d7d13a80aeaa4b60b55659a4ee4fb24ab6248ee.zip | |
introduce featured tags
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 + "?" + |
