From fe084e87bd2914108e39af682185f13eca946ea8 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Fri, 3 Jan 2020 09:53:34 +0100 Subject: [PATCH] Cleanup shell context --- nopaque.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/nopaque.py b/nopaque.py index 53965327..63393b27 100644 --- a/nopaque.py +++ b/nopaque.py @@ -1,7 +1,7 @@ import eventlet eventlet.monkey_patch() from app import create_app, db, socketio -from app.models import Corpus, User, Role, Permission, Job +from app.models import Corpus, Job, Role, User from flask_migrate import Migrate import os @@ -12,12 +12,7 @@ migrate = Migrate(app, db) @app.shell_context_processor def make_shell_context(): - return dict(db=db, - Corpus=Corpus, - User=User, - Role=Role, - Permission=Permission, - Job=Job) + return {'db': db, 'Corpus': Corpus, 'Job': Job, 'User': User} @app.cli.command()