From 2494121615ae735faeb217844af18bca66593920 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 3 Jul 2023 22:49:46 +0100 Subject: [PATCH] Fix inverted condition in supports_all_games check --- app/tasks/importtasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index ef2a0849..0ebdf51a 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -162,9 +162,9 @@ def post_release_check_update(self, release: PackageRelease, path): has_star = any(map(lambda x: x.strip() == "*", tree.meta["supported_games"].split(","))) if has_star: - if package.type != PackageType.TXP and \ + if package.type == PackageType.TXP or \ package.supported_games.filter(and_( - PackageGameSupport.confidence == 1, PackageGameSupport.supports == True)).count() == 0: + PackageGameSupport.confidence == 1, PackageGameSupport.supports == True)).count() > 0: raise TaskError("The package depends on a game-specific mod, and so cannot support all games.") package.supports_all_games = True