From ac7adde4b1a5af0b93c1dd38e68717c31cbcf2a1 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 9 Jul 2020 04:32:13 +0100 Subject: Add score bonus to reviews --- app/blueprints/api/endpoints.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/blueprints/api/endpoints.py') diff --git a/app/blueprints/api/endpoints.py b/app/blueprints/api/endpoints.py index d5ef9d0..c12d59b 100644 --- a/app/blueprints/api/endpoints.py +++ b/app/blueprints/api/endpoints.py @@ -42,8 +42,7 @@ def package_scores(): qb = QueryBuilder(request.args) query = qb.buildPackageQuery() - pkgs = [{ "author": package.author.username, "name": package.name, "score": package.score } \ - for package in query.all()] + pkgs = [package.getScoreDict() for package in query.all()] return jsonify(pkgs) -- cgit v1.2.3