mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 09:33:44 +01:00
Fix bug in meta package counting
This commit is contained in:
parent
506974a50d
commit
a8e1863341
@ -24,7 +24,7 @@ from app.models import *
|
||||
|
||||
@bp.route("/metapackages/")
|
||||
def list_all():
|
||||
mpackages = db.session.query(MetaPackage, func.count(MetaPackage.id)) \
|
||||
mpackages = db.session.query(MetaPackage, func.count(Package.id)) \
|
||||
.select_from(MetaPackage).outerjoin(MetaPackage.packages) \
|
||||
.order_by(db.asc(MetaPackage.name)) \
|
||||
.group_by(MetaPackage.id).all()
|
||||
|
Loading…
Reference in New Issue
Block a user