forked from openlp/openlp
pep8 fixes
This commit is contained in:
parent
41c0d3fcf9
commit
4fc4fa8969
@ -47,7 +47,6 @@ class MediaShoutImport(SongImport):
|
||||
Initialise the MediaShout importer.
|
||||
"""
|
||||
super(MediaShoutImport, self).__init__(manager, **kwargs)
|
||||
#SongImport.__init__(self, manager, **kwargs)
|
||||
|
||||
def do_import(self):
|
||||
"""
|
||||
@ -70,9 +69,11 @@ class MediaShoutImport(SongImport):
|
||||
topics = []
|
||||
if self.stop_import_flag:
|
||||
break
|
||||
cursor.execute('SELECT Type, Number, Text FROM Verses WHERE Record = ? ORDER BY Type, Number', float(song.Record))
|
||||
cursor.execute('SELECT Type, Number, Text FROM Verses WHERE Record = ? ORDER BY Type, Number',
|
||||
float(song.Record))
|
||||
verses = cursor.fetchall()
|
||||
cursor.execute('SELECT Type, Number, POrder FROM PlayOrder WHERE Record = ? ORDER BY POrder', float(song.Record))
|
||||
cursor.execute('SELECT Type, Number, POrder FROM PlayOrder WHERE Record = ? ORDER BY POrder',
|
||||
float(song.Record))
|
||||
verse_order = cursor.fetchall()
|
||||
if cursor.tables(table='TableName', tableType='TABLE').fetchone():
|
||||
cursor.execute('SELECT Name FROM Themes INNER JOIN SongThemes ON SongThemes.ThemeId = Themes.ThemeId '
|
||||
|
@ -118,4 +118,3 @@ class VideoPsalmImport(SongImport):
|
||||
self.log_error('Could not import {title}'.format(title=self.title))
|
||||
except Exception as e:
|
||||
self.log_error(song_file.name, translate('SongsPlugin.VideoPsalmImport', 'Error: {error}').format(error=e))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user