Correct booth valid and total participants calculations

This commit is contained in:
Bertocq
2017-10-24 01:39:57 +02:00
committed by Javi Martín
parent b2b5ab1d48
commit 84eac6ff68

View File

@@ -31,7 +31,7 @@ class Poll
end end
def total_participants_booth def total_participants_booth
stats_cache("total_participants_booth") { voters.where(origin: "booth").count } stats_cache("total_participants_booth") { total_booth_valid + total_booth_white + total_booth_null }
end end
def total_participants_booth_percentage def total_participants_booth_percentage