Commit ee1cdfc1 authored by nanahira's avatar nanahira

compat

parent 9ac1bb2f
......@@ -43,7 +43,11 @@ def migrate_songs():
for diff in ['easy', 'normal', 'hard', 'oni', 'ura']:
if row[diff]:
spl = row[diff].split(' ')
spl = None
if type(row[diff]) == 'string':
spl = row[diff].split(' ')
else:
spl = [row[diff]]
branch = False
if len(spl) > 1 and spl[1] == 'B':
branch = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment