From 311d07d45451bbb067e44e212da2cd3485f7509b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 29 Mar 2024 15:45:01 +0000 Subject: [PATCH] Fix user_supported_games when supporting all games --- app/logic/game_support.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/logic/game_support.py b/app/logic/game_support.py index d252885f..ce9805f6 100644 --- a/app/logic/game_support.py +++ b/app/logic/game_support.py @@ -255,7 +255,8 @@ def _convert_package(support: GameSupport, package: Package) -> GSPackage: .filter(PackageGameSupport.game.has(state=PackageState.APPROVED), PackageGameSupport.confidence > 5) .all()) - gs_package.user_supported_games = [x.game.name for x in existing_game_support if x.supports] + if not package.supports_all_games: + gs_package.user_supported_games = [x.game.name for x in existing_game_support if x.supports] gs_package.user_unsupported_games = [x.game.name for x in existing_game_support if not x.supports] return support.add(gs_package)