From a8f50d9e132096e04f45c49e14e6d530ebc3301d Mon Sep 17 00:00:00 2001 From: Burathar Date: Thu, 23 Jul 2020 00:57:31 +0200 Subject: [PATCH] fix delete user --- app/main/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()