forked from openlp/openlp
Simplified if statment
This commit is contained in:
parent
ca2b2db640
commit
ea86ce905c
@ -187,7 +187,7 @@ class SongShowPlusImport(SongImport):
|
|||||||
# Have we got any digits? If so, verse number is everything from the digits to the end (OpenLP does not have
|
# Have we got any digits? If so, verse number is everything from the digits to the end (OpenLP does not have
|
||||||
# concept of part verses, so just ignore any non integers on the end (including floats))
|
# concept of part verses, so just ignore any non integers on the end (including floats))
|
||||||
match = re.match(u'(\D*)(\d+)', verse_name)
|
match = re.match(u'(\D*)(\d+)', verse_name)
|
||||||
if match is not None:
|
if match:
|
||||||
verse_type = match.group(1).strip()
|
verse_type = match.group(1).strip()
|
||||||
verse_number = match.group(2)
|
verse_number = match.group(2)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user