forked from openlp/openlp
clean up
This commit is contained in:
parent
8d0f6563ef
commit
78c3c3ef39
@ -431,7 +431,7 @@ class FoilPresenter(object):
|
||||
verse_sortnr = self._child(strophe.sortnr)
|
||||
sortnr = True
|
||||
# In older Version there is no sortnr, but we need one
|
||||
if sortnr == False:
|
||||
if not sortnr:
|
||||
verse_sortnr = unicode(temp_sortnr_backup)
|
||||
temp_sortnr_backup += 1
|
||||
# Foilpresenter allows e. g. "Ref" or "1", but we need "C1" or "V1".
|
||||
@ -467,7 +467,7 @@ class FoilPresenter(object):
|
||||
# test if foilpresenter have the same versenumber two times with
|
||||
# different parts raise the verse number
|
||||
for value in temp_verse_order_backup:
|
||||
if value == (u''.join((verse_type, verse_number))):
|
||||
if value == u''.join((verse_type, verse_number)):
|
||||
verse_number = unicode(int(verse_number) + 1)
|
||||
verse_type_index = VerseType.from_tag(verse_type[0])
|
||||
verse_type = VerseType.Names[verse_type_index]
|
||||
|
@ -150,13 +150,13 @@ class SongShowPlusImport(SongImport):
|
||||
self.ccli_number = int(data)
|
||||
elif blockKey == VERSE:
|
||||
self.add_verse(unicode(data, u'cp1252'),
|
||||
"V%s" % verseNo)
|
||||
"%s%s" % (VerseType.Tags[VerseType.Verse], verseNo))
|
||||
elif blockKey == CHORUS:
|
||||
self.add_verse(unicode(data, u'cp1252'),
|
||||
"C%s" % verseNo)
|
||||
"%s%s" % (VerseType.Tags[VerseType.Chorus], verseNo))
|
||||
elif blockKey == BRIDGE:
|
||||
self.add_verse(unicode(data, u'cp1252'),
|
||||
"B%s" % verseNo)
|
||||
"%s%s" % (VerseType.Tags[VerseType.Bridge], verseNo))
|
||||
elif blockKey == TOPIC:
|
||||
self.topics.append(unicode(data, u'cp1252'))
|
||||
elif blockKey == COMMENTS:
|
||||
|
Loading…
Reference in New Issue
Block a user