summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2020-09-13 14:07:40 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2020-09-13 14:07:40 +0200
commit07f6601a58c5bf7c30d132831367ab44c60b3619 (patch)
tree68d670daecdf879481da1ed249042cc63d9ec41c
parentda6ee8b6982fa5e89c6c808cfe86e75707eca887 (diff)
Some more missed uid -> eid corrections.
Thanks again to fabrixxm.
-rw-r--r--lesana/command.py4
-rwxr-xr-xscripts/tellico2lesana2
2 files changed, 3 insertions, 3 deletions
diff --git a/lesana/command.py b/lesana/command.py
index c2bdf28..3c72e68 100644
--- a/lesana/command.py
+++ b/lesana/command.py
@@ -116,7 +116,7 @@ class Edit(Command):
def main(self):
collection = self.collection_class(self.args.collection)
- entries = collection.entries_from_short_uid(self.args.eid)
+ entries = collection.entries_from_short_eid(self.args.eid)
if len(entries) > 1:
return "{} is not an unique eid".format(self.args.eid)
if not entries:
@@ -151,7 +151,7 @@ class Show(Command):
def main(self):
collection = self.collection_class(self.args.collection)
- entries = collection.entries_from_short_uid(self.args.eid)
+ entries = collection.entries_from_short_eid(self.args.eid)
if len(entries) > 1:
return "{} is not an unique eid".format(self.args.eid)
if not entries:
diff --git a/scripts/tellico2lesana b/scripts/tellico2lesana
index 4bd0810..a24415e 100755
--- a/scripts/tellico2lesana
+++ b/scripts/tellico2lesana
@@ -128,7 +128,7 @@ class T2L():
# import data
for xe in xml_collection.findall('tellico:entry', NS):
data = {
- 'uid': xe.attrib['id']
+ 'eid': xe.attrib['id']
}
for xfield in xe.getchildren():
field_name = xfield.tag.replace(