fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
small fixes
[wolnelektury.git]
/
apps
/
search
/
templatetags
/
search_tags.py
diff --git
a/apps/search/templatetags/search_tags.py
b/apps/search/templatetags/search_tags.py
index
b19593e
..
6a2ccad
100644
(file)
--- a/
apps/search/templatetags/search_tags.py
+++ b/
apps/search/templatetags/search_tags.py
@@
-42,7
+42,7
@@
def book_searched(context, result):
for (idx, hit) in hits:
# currently we generate one snipper per hit though.
- if
'fragment' in hit
:
+ if
result.snippets[idx] is None
:
continue
snip = result.snippets[idx]
# fix some formattting