diff options
author | asciimoo <asciimoo@gmail.com> | 2014-02-11 13:13:51 +0100 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2014-02-11 13:13:51 +0100 |
commit | c1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73 (patch) | |
tree | bc2a38ccacc7d94721ab4b3942d83617ef3662f6 /searx/search.py | |
parent | 239299d45ec7698e45451b617f2ef52bfb2c2e88 (diff) | |
download | searxng-c1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73.tar.gz searxng-c1d7d30b8ec2950a6338f0b99ebe9bdc094fdb73.zip |
[mod] len() removed from conditions
Diffstat (limited to 'searx/search.py')
-rw-r--r-- | searx/search.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/search.py b/searx/search.py index f71adb2aa..7f991045b 100644 --- a/searx/search.py +++ b/searx/search.py @@ -49,7 +49,7 @@ class Search(object): self.categories = [] - if len(self.engines): + if self.engines: self.categories = list(set(engine['category'] for engine in self.engines)) else: @@ -59,13 +59,13 @@ class Search(object): if not category in categories: continue self.categories.append(category) - if not len(self.categories): + if not self.categories: cookie_categories = request.cookies.get('categories', '') cookie_categories = cookie_categories.split(',') for ccateg in cookie_categories: if ccateg in categories: self.categories.append(ccateg) - if not len(self.categories): + if not self.categories: self.categories = ['general'] for categ in self.categories: |