completed work

This commit is contained in:
Andreas Preikschat 2010-12-05 16:47:23 +01:00
parent a66a77bdec
commit b8e6da0417

View File

@ -73,8 +73,10 @@ class OpenLP1Bible(BibleDB):
self.create_book(name, abbreviation, testament_id) self.create_book(name, abbreviation, testament_id)
self.session.commit() self.session.commit()
# Import chapters/verses. # Import chapters/verses.
cursor.execute(u'SELECT id, book_id, chapter, verse, text || \'\' AS ' for book in books:
'text FROM verse') print u'Importiere %s' % book
cursor.execute(u'SELECT id, book_id, chapter, verse, text || \'\' '
'AS text FROM verse WHERE book_id=%s' % book)
verses = cursor.fetchall() verses = cursor.fetchall()
for verse in verses: for verse in verses:
book_id = int(verse[1]) book_id = int(verse[1])