fix splits texts
This commit is contained in:
parent
08300ef612
commit
c43e7fb578
|
@ -47,7 +47,13 @@ def upgrade():
|
||||||
system_uuids_file = 'system_uuids.csv'
|
system_uuids_file = 'system_uuids.csv'
|
||||||
if os.path.exists(system_uuids_file):
|
if os.path.exists(system_uuids_file):
|
||||||
with open(system_uuids_file) as f:
|
with open(system_uuids_file) as f:
|
||||||
uuids = [x.split(';') for x in f.read().split('\n')]
|
for x in f.read().split('\n'):
|
||||||
|
z = x.split(';')
|
||||||
|
if len(z) != 2:
|
||||||
|
continue
|
||||||
|
|
||||||
|
x, y = z
|
||||||
|
uuids.append([x.strip(), y.strip()])
|
||||||
|
|
||||||
con = op.get_bind()
|
con = op.get_bind()
|
||||||
for u in uuids[1:]:
|
for u in uuids[1:]:
|
||||||
|
|
Reference in New Issue