Fix bug in meta package counting

This commit is contained in:
rubenwardy 2020-08-18 16:54:05 +01:00
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()