From 022dd1de3cb7c8e6f5d3dc2f6684770b0be7e80a Mon Sep 17 00:00:00 2001 From: Sanjiva Weerawarana Date: Sun, 17 Nov 2019 02:41:36 +0530 Subject: [PATCH] Dont skip postal divs any more in accumulation as they're now separated --- distributor/src/distributor/save.bal | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);