Skip to content

Commit ffc2a89

Browse files
qnighystefano-maggiolo
authored andcommitted
Fix misdetection of score_mode in rankings.
1 parent ea28a4c commit ffc2a89

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cmsranking/Scoring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Score(object):
7777
# but cms assures that the order in which the subchanges have to
7878
# be processed is the ascending order of their keys (actually,
7979
# this is enforced only for subchanges with the same time).
80-
def __init__(self, score_mode="ioi_max_tokened_last"):
80+
def __init__(self, score_mode="max_tokened_last"):
8181
# The submissions in their current status.
8282
self._submissions = dict()
8383

@@ -117,7 +117,7 @@ def append_change(self, change):
117117
self._submissions[s_id].time > self._last.time):
118118
self._last = self._submissions[s_id]
119119

120-
if self._score_mode == "ioi_max":
120+
if self._score_mode == "max":
121121
score = max([0.0] +
122122
[submission.score
123123
for submission in self._submissions.values()])

cmsranking/Task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self):
5555
self.max_score = None
5656
self.extra_headers = None
5757
self.order = None
58-
self.score_mode = "ioi_max_tokened_last"
58+
self.score_mode = "max_tokened_last"
5959

6060
@staticmethod
6161
def validate(data):

0 commit comments

Comments
 (0)