X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1bae026e15a391213f57020fa0aab71840b052ff..ad39c2501159fa52e980c95af3e735e36b459c15:/apps/search/custom.py?ds=sidebyside diff --git a/apps/search/custom.py b/apps/search/custom.py index 924a10ec6..b3b704d0b 100644 --- a/apps/search/custom.py +++ b/apps/search/custom.py @@ -1,4 +1,7 @@ - +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from sunburnt import sunburnt from lxml import etree import urllib @@ -179,7 +182,6 @@ class CustomSolrInterface(sunburnt.SolrInterface): snip = text[start:end] matches.sort(lambda a, b: cmp(b[0], a[0])) - print matches for (s, e) in matches: off = - start