[fix] filtering

This commit is contained in:
asciimoo 2013-10-20 20:47:00 +02:00
parent 95e4a9353a
commit ec28b77a93

View File

@ -88,7 +88,7 @@ def search(query, request, selected_engines):
) )
requests.append(req) requests.append(req)
grequests.map(requests) 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) flat_len = len(flat_res)
results = [] results = []
# deduplication + scoring # deduplication + scoring