diff options
author | emkael <emkael@tlen.pl> | 2018-05-24 02:29:30 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-05-24 02:29:30 +0200 |
commit | cb96aace5545df2552003ad728b4376d7311b673 (patch) | |
tree | b4d7bb103218f1610e00fc8b9fe38c61075b2bc9 /http/_res | |
parent | a7a44586d06088362c01b378882ab7d40a3a96b6 (diff) |
Updated group ranking tools
Diffstat (limited to 'http/_res')
-rw-r--r-- | http/_res/group-ranking.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/http/_res/group-ranking.js b/http/_res/group-ranking.js index 38d9032..5c476c5 100644 --- a/http/_res/group-ranking.js +++ b/http/_res/group-ranking.js @@ -21,21 +21,16 @@ $(document).on('rankingLoaded', function(ev, params) { var getScore = function(pid) { if (params.ranks[pid]) { - return params.ranks[pid].score || - Math.max( - 0.1, Math.min( - params.minRating, params.ranks[pid].rank * 2.0 - ) - ); + return params.ranks[pid].score || 0.1; } return 0.1; }; var getPlace = function(pid) { if (params.ranks[pid]) { - return params.ranks[pid].place || 2500; + return params.ranks[pid].place || 7000; } - return 2500; + return 7000; }; var averages = { |