rename into english

This commit is contained in:
2025-08-20 17:21:23 +02:00
parent 9159d2a082
commit 8d65ab03cf
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ def arrange_votes_by_candidate(votes,candidates,default_mention):
vpc[candidate]=[vote[candidate] if candidate in vote else default_mention for vote in votes] vpc[candidate]=[vote[candidate] if candidate in vote else default_mention for vote in votes]
return vpc return vpc
def jugement_majoritaire(poll): def majority_judgment_run(poll):
verbose=False verbose=False
crosscheck=True crosscheck=True

View File

@@ -1,6 +1,6 @@
import json import json
import sys import sys
from jugement_majoritaire import jugement_majoritaire from majority_judgment_method import majority_judgment_run
if len(sys.argv) > 1: if len(sys.argv) > 1:
poll_file=sys.argv[1] poll_file=sys.argv[1]
@@ -16,6 +16,6 @@ with open(poll_file,'r') as poll_fd:
if verbose: if verbose:
print(poll) print(poll)
result = jugement_majoritaire(poll) result = majority_judgment_run(poll)
print(json.dumps(result)) print(json.dumps(result))