fixed bug 977835 (Advanced search of Bibles is not working.)

Fixes: https://launchpad.net/bugs/977835
This commit is contained in:
Andreas Preikschat 2012-04-12 12:48:54 +02:00
parent cb2e2b3248
commit d53f7b6511

View File

@ -386,7 +386,7 @@ def parse_reference(reference, bible, language_selection, book_ref_id=False):
if bible.get_book_by_book_ref_id(value[u'id']): if bible.get_book_by_book_ref_id(value[u'id']):
book_ref_id = value[u'id'] book_ref_id = value[u'id']
break break
elif bible.get_book_by_book_ref_id(book_ref_id): elif not bible.get_book_by_book_ref_id(book_ref_id):
book_ref_id = False book_ref_id = False
ranges = match.group(u'ranges') ranges = match.group(u'ranges')
range_list = get_reference_match(u'range_separator').split(ranges) range_list = get_reference_match(u'range_separator').split(ranges)