diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-01-02 16:06:36 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-01-02 16:06:36 +0100 |
commit | ef7c7e24585d9b24119f56f9279d701dce9734fe (patch) | |
tree | ac92c5368283c9568b38f06384a7cc407e303e13 | |
parent | 2a064bc935c34832c76bb42e99072b2062d42094 (diff) |
Update tellico2lesana not to use deprecated methods
-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) |