Skip to content

Commit 16edc14

Browse files
Merge pull request #822 from dinukadesilva/fix-number-formats-in-pe-ce-ro-pr-3
Fix the number formats in PE-CE-RO-PR-3
2 parents 1a5758c + a4db7e1 commit 16edc14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

results-tabulation-api/ext/ExtendedElection/ExtendedElectionParliamentaryElection2020/ExtendedTallySheet/ExtendedTallySheet_PE_CE_RO_PR_3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from ext.ExtendedTallySheet import ExtendedTallySheetReport
55
from orm.entities import Area
66
from orm.enums import AreaTypeEnum
7+
from util import to_comma_seperated_num
78

89

910
class ExtendedTallySheet_PE_CE_RO_PR_3(ExtendedTallySheetReport):
@@ -43,7 +44,7 @@ def html(self, title="", total_registered_voters=None):
4344
candidate_id = candidate_wise_valid_vote_count_result.at[index_1, "candidateId"]
4445
candidate_number = candidate_wise_valid_vote_count_result.at[index_1, "candidateNumber"]
4546
candidate_name = candidate_wise_valid_vote_count_result.at[index_1, "candidateName"]
46-
num_value = candidate_wise_valid_vote_count_result.at[index_1, "numValue"]
47+
num_value = to_comma_seperated_num(candidate_wise_valid_vote_count_result.at[index_1, "numValue"])
4748

4849
data_row.append(position_of_candidate)
4950
data_row.append("%s - %s" % (candidate_number, candidate_name))

0 commit comments

Comments
 (0)