From 53e93653e33efce4dd9436da57f8e3aa6bcbc963 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Tue, 24 Oct 2017 19:26:19 +0800 Subject: [PATCH] feat(collections): show collection Vote average --- .../client/controllers/collections-view.client.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/collections/client/controllers/collections-view.client.controller.js b/modules/collections/client/controllers/collections-view.client.controller.js index 258002e4..7f16bf28 100644 --- a/modules/collections/client/controllers/collections-view.client.controller.js +++ b/modules/collections/client/controllers/collections-view.client.controller.js @@ -36,7 +36,7 @@ var total = 0; var count = 0; var total_users = 0; - angular.forEach(vm.collection.torrents, function(t){ + angular.forEach(vm.collection.torrents, function (t) { total += t.resource_detail_info.vote_average; count += 1; total_users += t.resource_detail_info.vote_count;