From ec28b77a93630fe73949d789467140984f446e12 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sun, 20 Oct 2013 20:47:00 +0200 Subject: [PATCH] [fix] filtering --- searx/engines/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 5a8de79f8..aa329269e 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -88,7 +88,7 @@ def search(query, request, selected_engines): ) requests.append(req) grequests.map(requests) - flat_res = list(filter(None, chain(*izip_longest(*results.values())))) + flat_res = filter(None, chain.from_iterable(izip_longest(*results.values()))) flat_len = len(flat_res) results = [] # deduplication + scoring