From f52320558631510c703ca1eac8c7e0e74471180b Mon Sep 17 00:00:00 2001 From: rgarcia Date: Fri, 30 Oct 2015 19:26:45 +0100 Subject: [PATCH] includes physical votes in score calculations --- app/models/proposal.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/models/proposal.rb b/app/models/proposal.rb index 0ddd11c69..dd2560ba1 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -93,14 +93,13 @@ class Proposal < ActiveRecord::Base def calculate_hot_score self.hot_score = ScoreCalculator.hot_score(created_at, - cached_votes_up, - cached_votes_up, + total_votes, + total_votes, comments_count) end def calculate_confidence_score - self.confidence_score = ScoreCalculator.confidence_score(cached_votes_up, - cached_votes_up) + self.confidence_score = ScoreCalculator.confidence_score(total_votes, total_votes) end def after_hide