fix splits texts

This commit is contained in:
Cayo Puigdefabregas 2022-06-16 11:47:36 +02:00
parent 08300ef612
commit c43e7fb578
1 changed files with 7 additions and 1 deletions

View File

@ -47,7 +47,13 @@ def upgrade():
system_uuids_file = 'system_uuids.csv'
if os.path.exists(system_uuids_file):
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()
for u in uuids[1:]: