mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Cleanup shell context
This commit is contained in:
parent
310bcba0bc
commit
fe084e87bd
@ -1,7 +1,7 @@
|
|||||||
import eventlet
|
import eventlet
|
||||||
eventlet.monkey_patch()
|
eventlet.monkey_patch()
|
||||||
from app import create_app, db, socketio
|
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
|
from flask_migrate import Migrate
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -12,12 +12,7 @@ migrate = Migrate(app, db)
|
|||||||
|
|
||||||
@app.shell_context_processor
|
@app.shell_context_processor
|
||||||
def make_shell_context():
|
def make_shell_context():
|
||||||
return dict(db=db,
|
return {'db': db, 'Corpus': Corpus, 'Job': Job, 'User': User}
|
||||||
Corpus=Corpus,
|
|
||||||
User=User,
|
|
||||||
Role=Role,
|
|
||||||
Permission=Permission,
|
|
||||||
Job=Job)
|
|
||||||
|
|
||||||
|
|
||||||
@app.cli.command()
|
@app.cli.command()
|
||||||
|
Loading…
Reference in New Issue
Block a user