diff --git a/app/main/routes.py b/app/main/routes.py index 390869b..e8eb602 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -210,7 +210,7 @@ def remove_player(game_name, username): if not game.owned_by(current_user): abort(403) user = User.query.filter(and_(User.name == username, User.games.contains(game))).first_or_404() - game.players.remove(user) + game.users.remove(user) if not user.last_login: db.session.delete(user) db.session.commit()