forked from openlp/openlp
Cleanup refactor
This commit is contained in:
parent
e9edb0c7a4
commit
1ea37f8d77
@ -207,10 +207,9 @@ class BGExtract(BibleCommon):
|
||||
text = str(soup.find(u'div', u'result-text-style-normal'))
|
||||
useful_soup = BeautifulSoup(text)
|
||||
verses = useful_soup.findAll(u'p')
|
||||
verses.pop(0)
|
||||
verses.pop()
|
||||
verse_list = {}
|
||||
for verse in verses:
|
||||
if verse.sup:
|
||||
verse_list[int(str(verse.sup.contents[0]))] = \
|
||||
unicode(verse.contents[2])
|
||||
return SearchResults(bookname, chapter, verse_list)
|
||||
|
Loading…
Reference in New Issue
Block a user