From 1c4fe1b80c6bf6f0634e80e73403ac5f6c900170 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 18 Aug 2020 17:39:20 +0100 Subject: [PATCH] Fix reimport not unapproving releases --- app/blueprints/todo/__init__.py | 1 + app/tasks/importtasks.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/blueprints/todo/__init__.py b/app/blueprints/todo/__init__.py index 20520ce4..682052dd 100644 --- a/app/blueprints/todo/__init__.py +++ b/app/blueprints/todo/__init__.py @@ -125,6 +125,7 @@ def tags(): @bp.route("/todo/metapackages/") +@login_required def metapackages(): mpackages = MetaPackage.query \ .filter(~ MetaPackage.packages.any(approved=True, soft_deleted=False)) \ diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index 69328de3..e0ee044b 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -206,7 +206,7 @@ def postReleaseCheckUpdate(self, release, path): # Raise error on unresolved game dependencies if package.type == PackageType.GAME and len(depends) > 0: deps = ", ".join(depends) - raise TaskError("Game has unresolved hard dependencies: " + deps) + raise MinetestCheckError("Game has unresolved hard dependencies: " + deps) # Add dependencies for meta in getMetaPackages(depends):