From 3375276f0dbebcad15d24021f8f7826e4c2d219a Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 1 Jun 2023 18:00:08 +0100 Subject: [PATCH] Show all featured packages in client --- app/blueprints/api/endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/blueprints/api/endpoints.py b/app/blueprints/api/endpoints.py index 68cf6cfd..d2509a06 100644 --- a/app/blueprints/api/endpoints.py +++ b/app/blueprints/api/endpoints.py @@ -79,7 +79,7 @@ def packages(): # Promote featured packages if "sort" not in request.args and "order" not in request.args and "q" not in request.args: featured_lut = set() - featured = qb.convertToDictionary(query.filter(Package.tags.any(name="featured")).all())[:3] + featured = qb.convertToDictionary(query.filter(Package.tags.any(name="featured")).all()) for pkg in featured: featured_lut.add(f"{pkg['author']}/{pkg['name']}") pkg["short_description"] = "Featured. " + pkg["short_description"]