From 773e6a23e017aade83b60c7edd57349994f87744 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 23 Apr 2020 20:46:04 -0700 Subject: [PATCH] Fix two missed method renames --- amanuensis/models/factory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amanuensis/models/factory.py b/amanuensis/models/factory.py index 53ef68b..072fd85 100644 --- a/amanuensis/models/factory.py +++ b/amanuensis/models/factory.py @@ -15,7 +15,7 @@ class ModelFactory(): raise ArgumentError('identifer must not be None') # Ensure we have a user guid if not is_guid(identifier): - with self.root.user.index() as index: + with self.root.user.read_index() as index: uid = index.get(identifier, None) if uid is None: raise KeyError(f'Unknown username: {identifier})') @@ -33,7 +33,7 @@ class ModelFactory(): raise ArgumentError('identifier must not be None') # Ensure we have a lexicon guid if not is_guid(identifier): - with self.root.lexicon.index() as index: + with self.root.lexicon.read_index() as index: lid = index.get(identifier, None) if lid is None: raise KeyError(f'Unknown lexicon: {identifier}')