don't shadow build-in

This commit is contained in:
Andreas P 2021-10-23 16:01:43 +02:00
parent 25952c8751
commit 2c8dd847c0

View File

@ -64,10 +64,10 @@ class WorshipCenterProImport(SongImport):
records = cursor.fetchall() records = cursor.fetchall()
songs = {} songs = {}
for record in records: for record in records:
id = record.ID record_id = record.ID
if id not in songs: if record_id not in songs:
songs[id] = {} songs[record_id] = {}
songs[id][record.Field] = record.Value songs[record_id][record.Field] = record.Value
self.import_wizard.progress_bar.setMaximum(len(songs)) self.import_wizard.progress_bar.setMaximum(len(songs))
for song in songs: for song in songs:
if self.stop_import_flag: if self.stop_import_flag: