You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
645 B
12 lines
645 B
from app import create_app, db |
|
from app.models import Game, Player, Objective, Location, Notification, GamePlayer, \ |
|
PlayerFoundObjective, NotificationPlayer, PlayerCaughtPlayer, Role, GameState |
|
|
|
app = create_app() |
|
|
|
@app.shell_context_processor |
|
def make_shell_context(): |
|
return {'db': db, 'Game' : Game, 'Player' : Player, 'Objective' : Objective, |
|
'Location' : Location, 'Notification' : Notification, 'GamePlayer' : GamePlayer, |
|
'PlayerFoundObjective' : PlayerFoundObjective, 'NotificationPlayer' : NotificationPlayer, |
|
'PlayerCaughtPlayer' : PlayerCaughtPlayer, 'Role' : Role, 'GameState' : GameState} |