Fix bible search strictness for web bibles

This commit is contained in:
Jon Tibble 2010-07-24 21:52:37 +01:00
parent 87fc38fb6f
commit 7df342ff1a

View File

@ -104,6 +104,7 @@ class HTTPBooks(object):
"""
if not isinstance(name, unicode):
name = unicode(name)
name = name.title()
books = HTTPBooks.run_sql(u'SELECT id, testament_id, name, '
u'abbreviation, chapters FROM books WHERE name = ? OR '
u'abbreviation = ?', (name, name))