Fix HTTPBible verse counts

This commit is contained in:
Jon Tibble 2010-06-17 22:01:30 +01:00
parent 035ae84f39
commit 16ab2da4d6
1 changed files with 4 additions and 4 deletions

View File

@ -137,10 +137,10 @@ class HTTPBooks(object):
u'verses FROM chapters WHERE book_id = ?', (book[u'id'],))
if chapters:
return {
u'id': chapters[0][0],
u'book_id': chapters[0][1],
u'chapter': chapters[0][2],
u'verses': chapters[0][3]
u'id': chapters[chapter][0],
u'book_id': chapters[chapter][1],
u'chapter': chapters[chapter][2],
u'verses': chapters[chapter][3]
}
else:
return None