fix: Fixed unassigned variable name

features_csvimport
chrisr3d 2019-10-03 16:02:25 +02:00
parent ffe43acd89
commit 3d7de2dc22
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class CsvParser():
for line in self.data:
a_uuid, _, category, _type, value, comment, ids, timestamp, relation, tag, o_uuid, name, _ = line[:self.fields_number]
attribute = {t: v.strip('"') for t, v in zip(attribute_fields, (a_uuid, category, _type, value, comment, ids, timestamp))}
attribute['to_ids'] = True if to_ids == '1' else False
attribute['to_ids'] = True if attribute['to_ids'] == '1' else False
if tag:
attribute['Tag'] = [{'name': t.strip()} for t in tag.split(',')]
if relation: