Skip to content

Commit e1f1230

Browse files
jonathanirvingsveluca93
authored andcommitted
Use SCORE_MODE_MAX_SUBTASK as default score_mode for tps loader
1 parent dd58977 commit e1f1230

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmscontrib/loaders/tps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from datetime import timedelta
2727

2828
from cms.db import Task, Dataset, Manager, Testcase, Attachment, Statement
29+
from cmscommon.constants import SCORE_MODE_MAX_SUBTASK
2930
from .base_loader import TaskLoader
3031

3132

@@ -123,6 +124,7 @@ def get_task(self, get_statement=True):
123124

124125
args["name"] = name
125126
args["title"] = data['name']
127+
args["score_mode"] = SCORE_MODE_MAX_SUBTASK
126128

127129
# Statements
128130
if get_statement:

0 commit comments

Comments
 (0)