diff options
author | Yorhel <git@yorhel.nl> | 2009-11-14 17:08:19 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-11-14 17:08:19 +0100 |
commit | 2394a77e8d503ebcf78109ced76680e46770b617 (patch) | |
tree | b0056a46a15dfca043a271d47c81d4169f63f808 /lib/VNDB/Util | |
parent | ed15643975e6e05ce5e8b9509901f769c86e06b4 (diff) |
Added bayesian rating info to VN pages
This adds about 100ms (sometimes more) to the page generation time of VN
pages... maybe I should cache the ratings after all.
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index ad99d32d..857cdcef 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -481,8 +481,9 @@ sub htmlVoteStats { clearfloat; if($type eq 'v') { div; - h3 mt '_votestats_pop_title'; - p mt '_votestats_pop_sum', $obj->{ranking}, $self->{stats}{vn}, sprintf('%0.2f',$obj->{c_popularity}*100); + h3 mt '_votestats_rank_title'; + p mt '_votestats_rank_pop', $obj->{p_ranking}, sprintf '%.2f', $obj->{c_popularity}*100; + p mt '_votestats_rank_rat', $obj->{r_ranking}, sprintf '%.2f', $obj->{rating}; end; } end; |