From 96db62fb35068a42c679a74aa50fbb8cdba1ce68 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 22 Apr 2020 22:30:38 -0700 Subject: [PATCH] Experiment with using the new model in a few places --- amanuensis/server/lexicon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amanuensis/server/lexicon.py b/amanuensis/server/lexicon.py index dfcf5f1..915cfce 100644 --- a/amanuensis/server/lexicon.py +++ b/amanuensis/server/lexicon.py @@ -55,9 +55,9 @@ def get_bp(): @player_required_if_not_public def contents(name): articles = [] - filenames = g.lexicon.ctx.article.ls() + filenames = g.lexicon_.ctx.article.ls() for filename in filenames: - with g.lexicon.ctx.article.read(filename) as a: + with g.lexicon_.ctx.article.read(filename) as a: articles.append({ 'title': a.title, 'link': url_for('lexicon.article', name=name, title=filesafe_title(a.title)), @@ -68,7 +68,7 @@ def get_bp(): @lexicon_param @player_required_if_not_public def article(name, title): - with g.lexicon.ctx.article.read(title) as a: + with g.lexicon_.ctx.article.read(title) as a: article = { **a, 'html': Markup(a['html']) } return render_template('lexicon/article.html', article=article)