mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
parent
b6995b1857
commit
d4ecaee5f2
@ -77,7 +77,10 @@ def packages():
|
|||||||
pkgs = [pkg for pkg in pkgs if pkg.get("release")]
|
pkgs = [pkg for pkg in pkgs if pkg.get("release")]
|
||||||
|
|
||||||
# Promote featured packages
|
# Promote featured packages
|
||||||
if "sort" not in request.args and "order" not in request.args and "q" not in request.args:
|
if "sort" not in request.args and \
|
||||||
|
"order" not in request.args and \
|
||||||
|
"q" not in request.args and \
|
||||||
|
"limit" not in request.args:
|
||||||
featured_lut = set()
|
featured_lut = set()
|
||||||
featured = qb.convert_to_dictionary(query.filter(
|
featured = qb.convert_to_dictionary(query.filter(
|
||||||
Package.collections.any(and_(Collection.name == "featured", Collection.author.has(username="ContentDB")))).all())
|
Package.collections.any(and_(Collection.name == "featured", Collection.author.has(username="ContentDB")))).all())
|
||||||
|
Loading…
Reference in New Issue
Block a user