logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 863d136dddc2b5947ac9ab615a91e085b2a307bb
parent: 53878fde2d46ac9c2d547de0212cdb13b5cb2b09
Author: asciimoo <asciimoo@gmail.com>
Date:   Sun,  5 Jan 2014 01:11:41 +0100

[fix] setting category cookie expiration to 4 weeks

Diffstat:

Msearx/webapp.py3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/searx/webapp.py b/searx/webapp.py @@ -152,7 +152,8 @@ def preferences(): selected_categories.append(category) if selected_categories: resp = make_response(redirect('/')) - resp.set_cookie('categories', ','.join(selected_categories)) + # cookie max age: 4 weeks + resp.set_cookie('categories', ','.join(selected_categories), max_age=60*60*24*7*4) return resp return render('preferences.html')