Fix user_supported_games when supporting all games

This commit is contained in:
rubenwardy 2024-03-29 15:45:01 +00:00
parent 43f4d4a7f4
commit 311d07d454

@ -255,6 +255,7 @@ def _convert_package(support: GameSupport, package: Package) -> GSPackage:
.filter(PackageGameSupport.game.has(state=PackageState.APPROVED),
PackageGameSupport.confidence > 5)
.all())
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)