forked from openlp/openlp
Fix HTTPBible verse counts
This commit is contained in:
parent
035ae84f39
commit
16ab2da4d6
@ -137,10 +137,10 @@ class HTTPBooks(object):
|
|||||||
u'verses FROM chapters WHERE book_id = ?', (book[u'id'],))
|
u'verses FROM chapters WHERE book_id = ?', (book[u'id'],))
|
||||||
if chapters:
|
if chapters:
|
||||||
return {
|
return {
|
||||||
u'id': chapters[0][0],
|
u'id': chapters[chapter][0],
|
||||||
u'book_id': chapters[0][1],
|
u'book_id': chapters[chapter][1],
|
||||||
u'chapter': chapters[0][2],
|
u'chapter': chapters[chapter][2],
|
||||||
u'verses': chapters[0][3]
|
u'verses': chapters[chapter][3]
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user