From f81b7523d49b238243c03a8419cc691198a24df0 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 4 Jul 2024 21:55:23 +0100 Subject: [PATCH] Run admin action on more than top 100 packages --- app/blueprints/admin/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/blueprints/admin/actions.py b/app/blueprints/admin/actions.py index 0f5c3f72..430de653 100644 --- a/app/blueprints/admin/actions.py +++ b/app/blueprints/admin/actions.py @@ -408,5 +408,5 @@ def delete_empty_threads(): @action("DANGER: Check for broken links in all packages") def check_for_broken_links(): - for package in Package.query.filter_by(state=PackageState.APPROVED).order_by(db.desc(Package.score)).limit(100).all(): + for package in Package.query.filter_by(state=PackageState.APPROVED).all(): check_package_for_broken_links.delay(package.id)