Python 3
[wolnelektury.git] / src / search / templatetags / search_tags.py
index d0cbb5c..0975c2a 100644 (file)
@@ -12,7 +12,7 @@ register = template.Library()
 def book_searched(context, result):
     # We don't need hits which lead to sections but do not have
     # snippets.
-    hits = filter(lambda (idx, h):
+    hits = filter(lambda idx, h:
                   result.snippets[idx] is not None or ('fragment' in h and h['themes_hit']),
                   enumerate(result.hits))
     # print "[tmpl: from %d hits selected %d]" % (len(result.hits), len(hits))