diff --git a/distributor/src/distributor/save.bal b/distributor/src/distributor/save.bal index 4e2265b..bc1b3a5 100644 --- a/distributor/src/distributor/save.bal +++ b/distributor/src/distributor/save.bal @@ -288,9 +288,7 @@ function addToCumulative (map jm) { accum.summary.polled += jm.summary.polled; // don't add up electors from postal PDs as those are already in the district elsewhere string pdCode = jm.pd_code; - if !pdCode.endsWith("P") { - accum.summary.electors += jm.summary.electors; - } + accum.summary.electors += jm.summary.electors; accum.summary.percent_valid = (accum.summary.polled == 0) ? "0.00" : io:sprintf("%.2f", accum.summary.valid*100.0/accum.summary.polled); accum.summary.percent_rejected = (accum.summary.polled == 0) ? "0.00" : io:sprintf("%.2f", accum.summary.rejected*100.0/accum.summary.polled); accum.summary.percent_polled = (accum.summary.electors == 0) ? "0.00" : io:sprintf("%.2f", accum.summary.polled*100.0/accum.summary.electors);