Commit ea39a947 authored by nanahira's avatar nanahira

fix

parent 51befd0b
...@@ -44,10 +44,10 @@ def migrate_songs(): ...@@ -44,10 +44,10 @@ def migrate_songs():
for diff in ['easy', 'normal', 'hard', 'oni', 'ura']: for diff in ['easy', 'normal', 'hard', 'oni', 'ura']:
if row[diff]: if row[diff]:
spl = None spl = None
if type(row[diff]) == 'str': if isinstance(row[diff], int):
spl = row[diff].split(' ')
else:
spl = [row[diff]] spl = [row[diff]]
else:
spl = row[diff].split(' ')
branch = False branch = False
if len(spl) > 1 and spl[1] == 'B': if len(spl) > 1 and spl[1] == 'B':
branch = True 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