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