From a4db7e199cf6b39a4d126f2b04cbd6db0b95ad3b Mon Sep 17 00:00:00 2001 From: Dinuka De Silva Date: Thu, 20 Aug 2020 12:07:14 +0530 Subject: [PATCH] Fix the number formats in PE-CE-RO-PR-3 --- .../ExtendedTallySheet/ExtendedTallySheet_PE_CE_RO_PR_3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/results-tabulation-api/ext/ExtendedElection/ExtendedElectionParliamentaryElection2020/ExtendedTallySheet/ExtendedTallySheet_PE_CE_RO_PR_3.py b/results-tabulation-api/ext/ExtendedElection/ExtendedElectionParliamentaryElection2020/ExtendedTallySheet/ExtendedTallySheet_PE_CE_RO_PR_3.py index 3235bed0..a5258527 100644 --- a/results-tabulation-api/ext/ExtendedElection/ExtendedElectionParliamentaryElection2020/ExtendedTallySheet/ExtendedTallySheet_PE_CE_RO_PR_3.py +++ b/results-tabulation-api/ext/ExtendedElection/ExtendedElectionParliamentaryElection2020/ExtendedTallySheet/ExtendedTallySheet_PE_CE_RO_PR_3.py @@ -4,6 +4,7 @@ from ext.ExtendedTallySheet import ExtendedTallySheetReport from orm.entities import Area from orm.enums import AreaTypeEnum +from util import to_comma_seperated_num class ExtendedTallySheet_PE_CE_RO_PR_3(ExtendedTallySheetReport): @@ -43,7 +44,7 @@ def html(self, title="", total_registered_voters=None): candidate_id = candidate_wise_valid_vote_count_result.at[index_1, "candidateId"] candidate_number = candidate_wise_valid_vote_count_result.at[index_1, "candidateNumber"] candidate_name = candidate_wise_valid_vote_count_result.at[index_1, "candidateName"] - num_value = candidate_wise_valid_vote_count_result.at[index_1, "numValue"] + num_value = to_comma_seperated_num(candidate_wise_valid_vote_count_result.at[index_1, "numValue"]) data_row.append(position_of_candidate) data_row.append("%s - %s" % (candidate_number, candidate_name))