feat(collections): show collection Vote average

This commit is contained in:
OldHawk
2017-10-24 19:26:19 +08:00
parent 4da710b179
commit 53e93653e3

View File

@@ -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;