From 07f6601a58c5bf7c30d132831367ab44c60b3619 Mon Sep 17 00:00:00 2001
From: Elena ``of Valhalla'' Grandi <valhalla@trueelena.org>
Date: Sun, 13 Sep 2020 14:07:40 +0200
Subject: Some more missed uid -> eid corrections.

Thanks again to fabrixxm.
---
 lesana/command.py      | 4 ++--
 scripts/tellico2lesana | 2 +-
 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(
-- 
cgit v1.2.3