From ef7c7e24585d9b24119f56f9279d701dce9734fe Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sat, 2 Jan 2021 16:06:36 +0100 Subject: Update tellico2lesana not to use deprecated methods --- scripts/tellico2lesana | 4 ++-- 1 file 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) -- cgit v1.2.3