summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2015-02-08 22:01:24 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2015-02-08 22:01:24 +0100
commit832ea60e3d19add2ffa857bc420ff33af83aac5c (patch)
treee0faf5b4a51d7e055fc11a29a12f3328f35f4f51 /searx/webapp.py
parente7de9674b14c2ff06fac009274742819d6468138 (diff)
[fix] pep8, tests
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 7266de0f0..861f3aa29 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -457,10 +457,6 @@ def preferences():
Settings that are going to be saved as cookies."""
lang = None
image_proxy = request.cookies.get('image_proxy', settings['server'].get('image_proxy'))
- try:
- savesearch = int(request.cookies.get('savesearch', 1))
- except ValueError:
- savesearch = 1
if request.cookies.get('language')\
and request.cookies['language'] in (x[0] for x in language_codes):
@@ -539,7 +535,7 @@ def preferences():
)
resp.set_cookie('method', method, max_age=cookie_max_age)
-
+
resp.set_cookie('safesearch', safesearch, max_age=cookie_max_age)
resp.set_cookie('image_proxy', image_proxy, max_age=cookie_max_age)