mirror of
https://github.com/minetest/contentdb.git
synced 2024-09-20 04:48:30 +02:00
Filter out packages with no releases in ContentDB
This commit is contained in:
parent
a57e06d09b
commit
3fbc5f7751
@ -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/")
|
||||
|
Loading…
Reference in New Issue
Block a user