fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'pretty' of github.com:fnp/wolnelektury into pretty
[wolnelektury.git]
/
apps
/
search
/
index.py
diff --git
a/apps/search/index.py
b/apps/search/index.py
index
29e41d2
..
307376d
100644
(file)
--- a/
apps/search/index.py
+++ b/
apps/search/index.py
@@
-25,6
+25,7
@@
import re
import errno
from librarian import dcparser
from librarian.parser import WLDocument
import errno
from librarian import dcparser
from librarian.parser import WLDocument
+from lxml import etree
import catalogue.models
from multiprocessing.pool import ThreadPool
from threading import current_thread
import catalogue.models
from multiprocessing.pool import ThreadPool
from threading import current_thread
@@
-401,6
+402,8
@@
class Index(BaseIndex):
if header.tag in self.skip_header_tags:
continue
if header.tag in self.skip_header_tags:
continue
+ if header.tag is etree.Comment:
+ continue
# section content
content = []
# section content
content = []