From 9252e524ae86be7c8424064c713b89c60cebe1a7 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Fri, 24 Apr 2020 10:53:19 -0700 Subject: [PATCH] Unnecessary to pass both root and model factory --- amanuensis/cli/lexicon.py | 2 +- amanuensis/lexicon/admin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/amanuensis/cli/lexicon.py b/amanuensis/cli/lexicon.py index 990cfc1..f8d84a0 100644 --- a/amanuensis/cli/lexicon.py +++ b/amanuensis/cli/lexicon.py @@ -43,7 +43,7 @@ def command_create(args): return -1 # Perform command - create_lexicon(root, args.model_factory, args.name, args.user) + create_lexicon(root, args.name, args.user) # Output already logged by create_lexicon return 0 diff --git a/amanuensis/lexicon/admin.py b/amanuensis/lexicon/admin.py index 6ace199..644086e 100644 --- a/amanuensis/lexicon/admin.py +++ b/amanuensis/lexicon/admin.py @@ -28,7 +28,6 @@ def valid_name(name: str) -> bool: def create_lexicon( root: RootConfigDirectoryContext, - model_factory: ModelFactory, name: str, editor: UserModel) -> LexiconModel: """ @@ -74,6 +73,7 @@ def create_lexicon( pass # Create an empry config file # Load the lexicon and add the editor and default character + model_factory: ModelFactory = ModelFactory(root) lexicon = model_factory.lexicon(lid) with lexicon.ctx.edit_config() as cfg: cfg.join.joined.append(editor.uid)