forked from openlp/openlp
change value to True/False
This commit is contained in:
parent
557d5a9d27
commit
b4b6fef70a
@ -420,13 +420,13 @@ class FoilPresenter(object):
|
|||||||
text = self._child(strophe.text_)
|
text = self._child(strophe.text_)
|
||||||
verse_name = self._child(strophe.key)
|
verse_name = self._child(strophe.key)
|
||||||
children = strophe.getchildren()
|
children = strophe.getchildren()
|
||||||
sortnr = 0
|
sortnr = False
|
||||||
for child in children:
|
for child in children:
|
||||||
if child.tag == u'sortnr':
|
if child.tag == u'sortnr':
|
||||||
verse_sortnr = self._child(strophe.sortnr)
|
verse_sortnr = self._child(strophe.sortnr)
|
||||||
sortnr = 1
|
sortnr = True
|
||||||
# In older Version there is no sortnr, but we need one
|
# In older Version there is no sortnr, but we need one
|
||||||
if sortnr == 0:
|
if sortnr == False:
|
||||||
verse_sortnr = unicode(temp_sortnr_backup)
|
verse_sortnr = unicode(temp_sortnr_backup)
|
||||||
temp_sortnr_backup += 1
|
temp_sortnr_backup += 1
|
||||||
# Foilpresenter allows e. g. "Ref" or "1", but we need "C1" or "V1".
|
# Foilpresenter allows e. g. "Ref" or "1", but we need "C1" or "V1".
|
||||||
|
Loading…
Reference in New Issue
Block a user