diff --git a/game_collection/user_management.py b/game_collection/user_management.py index 783a980..88f571c 100644 --- a/game_collection/user_management.py +++ b/game_collection/user_management.py @@ -110,6 +110,7 @@ def edit_game(game_id): return jsonify({'message': 'Game not found!'}), 404 game.title = data.get('title', game.title) game.image = data.get('image', game.image) + game.owned = data.get('owned', game.owned) # Update owned status if provided db.session.commit() return jsonify({'message': 'Game updated!'}), 200