From 1b3de30b92d8dbfb396539858418ef261600f83e Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Sat, 15 Jan 2011 23:19:25 +0000 Subject: [PATCH] Fix local bible quick search --- openlp/plugins/bibles/lib/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/bibles/lib/db.py b/openlp/plugins/bibles/lib/db.py index 1967448cc..f442a9cd6 100644 --- a/openlp/plugins/bibles/lib/db.py +++ b/openlp/plugins/bibles/lib/db.py @@ -340,11 +340,11 @@ class BibleDB(QtCore.QObject, Manager): verse_list = [] for book, chapter, start_verse, end_verse in reference_list: db_book = self.get_book(book) - if end_verse == -1: - end_verse = self.get_verse_count(book, chapter) if db_book: book = db_book.name log.debug(u'Book name corrected to "%s"', book) + if end_verse == -1: + end_verse = self.get_verse_count(book, chapter) verses = self.session.query(Verse)\ .filter_by(book_id=db_book.id)\ .filter_by(chapter=chapter)\