aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-01-02 16:06:36 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-01-02 16:06:36 +0100
commitef7c7e24585d9b24119f56f9279d701dce9734fe (patch)
treeac92c5368283c9568b38f06384a7cc407e303e13 /scripts
parent2a064bc935c34832c76bb42e99072b2062d42094 (diff)
Update tellico2lesana not to use deprecated methods
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tellico2lesana4
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)