Skip to content

Commit

Permalink
fix: MAXSCORE increasing
Browse files Browse the repository at this point in the history
  • Loading branch information
viktar-dzmitryieu-tao committed Mar 19, 2024
1 parent 00a157d commit 509fa47
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/qtiItem/helper/maxScore.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ export default {
//map point response processing does not work on choice based interaction
max = 0;
} else if (template === 'NONE') {
//get the normalMaximum from SCORE outcome because we don't have any choices selected
max = interaction.getRootElement().getOutcomeDeclaration('SCORE').getAttributes().normalMaximum;
// set max to zero
max = 0;
}
return max;
},
Expand Down Expand Up @@ -329,8 +329,8 @@ export default {
//map response processing does not work on order based interaction
max = 0;
} else if (template === 'NONE') {
//get the normalMaximum from SCORE outcome because we don't have any choices selected
max = interaction.getRootElement().getOutcomeDeclaration('SCORE').getAttributes().normalMaximum;
// set max to zero
max = 0;
}
return max;
},
Expand Down Expand Up @@ -515,8 +515,8 @@ export default {
} else if (template === 'MAP_RESPONSE_POINT') {
max = 0;
} else if (template === 'NONE') {
//get the normalMaximum from SCORE outcome because we don't have any choices selected
max = interaction.getRootElement().getOutcomeDeclaration('SCORE').getAttributes().normalMaximum;
// set max to zero
max = 0;
}
return max;
},
Expand Down Expand Up @@ -709,8 +709,8 @@ export default {
} else if (template === 'MAP_RESPONSE_POINT') {
max = false;
} else if (template === 'NONE') {
//get the normalMaximum from SCORE outcome because we don't have any choices selected
max = interaction.getRootElement().getOutcomeDeclaration('SCORE').getAttributes().normalMaximum;
// set max to zero
max = 0;
}
return max;
},
Expand Down Expand Up @@ -760,8 +760,8 @@ export default {
max = Math.min(max, parseFloat(responseDeclaration.mappingAttributes.upperBound || 0));
}
} else if (template === 'NONE') {
//get the normalMaximum from SCORE outcome because we don't have any choices selected
max = interaction.getRootElement().getOutcomeDeclaration('SCORE').getAttributes().normalMaximum;
// set max to zero
max = 0;
}
return max;
},
Expand Down Expand Up @@ -808,8 +808,8 @@ export default {
} else if (template === 'MAP_RESPONSE_POINT') {
max = 0;
} else if (template === 'NONE') {
//get the normalMaximum from SCORE outcome because we don't have any choices selected
max = interaction.getRootElement().getOutcomeDeclaration('SCORE').getAttributes().normalMaximum;
// set max to zero
max = 0;
}
return max;
},
Expand Down Expand Up @@ -875,8 +875,8 @@ export default {
} else if (template === 'MAP_RESPONSE_POINT') {
max = 0;
} else if (template === 'NONE') {
//get the normalMaximum from SCORE outcome because we don't have any choices selected
max = interaction.getRootElement().getOutcomeDeclaration('SCORE').getAttributes().normalMaximum;
// set max to zero
max = 0;
}
return max;
},
Expand Down Expand Up @@ -912,8 +912,8 @@ export default {
max = Math.min(max, parseFloat(responseDeclaration.mappingAttributes.upperBound || 0));
}
} else if (template === 'NONE') {
//get the normalMaximum from SCORE outcome because we don't have any choices selected
max = interaction.getRootElement().getOutcomeDeclaration('SCORE').getAttributes().normalMaximum;
// set max to zero
max = 0;
} else {
max = 0;
}
Expand Down

0 comments on commit 509fa47

Please sign in to comment.