diff options
Diffstat (limited to 'scripts/tellico2lesana')
-rwxr-xr-x | scripts/tellico2lesana | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/tellico2lesana b/scripts/tellico2lesana index 8e7152b..87e9761 100755 --- a/scripts/tellico2lesana +++ b/scripts/tellico2lesana @@ -116,13 +116,13 @@ class T2L: self.collection = lesana.collection.Collection.init( directory=directory, git_enabled=False, - settings={'name': title, 'fields': fields,}, + settings={'name': title, 'fields': fields, }, ) # import data for xe in xml_collection.findall('tellico:entry', NS): data = {'eid': xe.attrib['id']} - for xfield in xe.getchildren(): + for xfield in xe: field_name = xfield.tag.replace('{' + NS['tellico'] + '}', '') data[field_name] = self.read_field_data(xfield) new_entry = lesana.collection.Entry(self.collection, data=data) |