Add cookies to every requests

This commit is contained in:
Cqoicebordel 2015-01-19 21:23:22 +01:00
parent b01b95194e
commit 1a24fd9c52

View file

@ -292,6 +292,7 @@ def index():
if not request.args and not request.form: if not request.args and not request.form:
return render( return render(
'index.html', 'index.html',
cookies=request.cookies,
) )
try: try:
@ -299,6 +300,7 @@ def index():
except: except:
return render( return render(
'index.html', 'index.html',
cookies=request.cookies,
) )
search.results, search.suggestions,\ search.results, search.suggestions,\
@ -387,6 +389,7 @@ def index():
answers=search.answers, answers=search.answers,
infoboxes=search.infoboxes, infoboxes=search.infoboxes,
theme=get_current_theme_name(), theme=get_current_theme_name(),
cookies=request.cookies,
favicons=global_favicons[themes.index(get_current_theme_name())] favicons=global_favicons[themes.index(get_current_theme_name())]
) )
@ -396,6 +399,7 @@ def about():
"""Render about page""" """Render about page"""
return render( return render(
'about.html', 'about.html',
cookies=request.cookies,
) )
@ -615,6 +619,7 @@ def stats():
return render( return render(
'stats.html', 'stats.html',
stats=stats, stats=stats,
cookies=request.cookies,
) )