X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1345cca1d38dcb02b6d9091d36618524cddc6cc9..d60f44f5eceafa25705d55044ae1b11aceb28187:/apps/search/index.py?ds=inline diff --git a/apps/search/index.py b/apps/search/index.py index 29e41d222..307376de9 100644 --- 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 +from lxml import etree 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 is etree.Comment: + continue # section content content = []