Browse Source

Set default score value for subtasks

pull/6/head
Pisces000221 8 years ago
parent
commit
523b4ebd3a
  1. 2
      utility.js

2
utility.js

@ -194,7 +194,7 @@ module.exports = {
if (numbers[0].includes(':')) {
let tokens = numbers[0].split(':');
res[s].type = tokens[0] || 'sum';
res[s].score = parseInt(tokens[1]);
res[s].score = parseInt(tokens[1]) || (100 / (lines.length - 2));
numbers.shift();
} else {
res[s].type = 'sum';

Loading…
Cancel
Save