mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
Show all featured packages in client
This commit is contained in:
parent
0a77a0110d
commit
3375276f0d
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user