Burathar
4 years ago
6 changed files with 27 additions and 25 deletions
@ -1,16 +1,11 @@ |
|||||||
from app import login |
|
||||||
|
|
||||||
from app.models.game import Game |
from .game import Game |
||||||
from app.models.game_player import GamePlayer |
from .game_player import GamePlayer |
||||||
from app.models.game_state import GameState |
from .game_state import GameState |
||||||
from app.models.location import Location, LocationEncoder |
from .location import Location, LocationEncoder |
||||||
from app.models.notification_player import NotificationPlayer |
from .notification_player import NotificationPlayer |
||||||
from app.models.objective import Objective, ObjectiveMinimalEncoder |
from .objective import Objective, ObjectiveMinimalEncoder |
||||||
from app.models.player_caught_player import PlayerCaughtPlayer |
from .player_caught_player import PlayerCaughtPlayer |
||||||
from app.models.player_found_objective import PlayerFoundObjective |
from .player_found_objective import PlayerFoundObjective |
||||||
from app.models.role import Role |
from .role import Role |
||||||
from app.models.user import User |
from .user import User |
||||||
|
|
||||||
@login.user_loader |
|
||||||
def load_user(id): |
|
||||||
return User.query.get(int(id)) |
|
||||||
|
Loading…
Reference in new issue