Replace FinalResult with TotalResult at admin Poll Recounts page

This commit is contained in:
Bertocq
2017-09-19 00:54:46 +02:00
parent f27fcc7f99
commit 851d397395
7 changed files with 15 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
module PollRecountsHelper
def booth_assignment_sum_final_recounts(ba)
ba.final_recounts.any? ? ba.final_recounts.to_a.sum(&:count) : nil
def total_recounts_by_booth(booth_assignment)
booth_assignment.total_results.any? ? booth_assignment.total_results.to_a.sum(&:amount) : nil
end
end