Filter out packages with no releases in ContentDB

This commit is contained in:
rubenwardy 2020-07-13 02:02:12 +01:00
parent a57e06d09b
commit 3fbc5f7751
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ def packages():
pkgs = [package.getAsDictionaryShort(current_app.config["BASE_URL"], version=ver) \
for package in query.all()]
return jsonify(pkgs)
return jsonify([package for package in pkgs if package.get("release")])
@bp.route("/api/scores/")