mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 03:37:28 +01:00
Run admin action on more than top 100 packages
This commit is contained in:
parent
1006971271
commit
f81b7523d4
@ -408,5 +408,5 @@ def delete_empty_threads():
|
|||||||
|
|
||||||
@action("DANGER: Check for broken links in all packages")
|
@action("DANGER: Check for broken links in all packages")
|
||||||
def check_for_broken_links():
|
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)
|
check_package_for_broken_links.delay(package.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user