곰픽 채점 기준 수정버전

This commit is contained in:
2025-06-30 17:04:10 +09:00
parent 9aa1425d81
commit db5176bc75
8 changed files with 2607 additions and 2652 deletions

View File

@@ -24,8 +24,8 @@ const examTypes = [
];
// testMode가 true일 경우 TEST 폴더에 있는 답안 파일을 읽어옴
const testMode = false;
// const testMode = true;
// const testMode = false;
const testMode = true;
const outputExcelFiles = [];
@@ -459,7 +459,7 @@ function getGmepScore(gmepData, scoringJson, index) {
// 만약 CRClip 요소가 motion clip인 경우 CRCUnitArr의 Path를 찾기
if (mediaPath == null) {
const motionClipPath = xpath.select1(`//CRClipArr/CRClip[${CRClipIndex}]/CRCUnitArr/@Path`, gmepXmlDoc);
if (motionClipPath !== null) {
if (motionClipPath != null) {
const fileName = path.basename(motionClipPath.value);
mediaOrderList.push(fileName);
}
@@ -616,7 +616,7 @@ function getGmepScore(gmepData, scoringJson, index) {
else {
const xpathExpr = ele?.replace(/{CRClipIndex}/g, crclipIndex);
const muteStatus = xpath.select1(xpathExpr, gmepXmlDoc);
userAnswer = muteStatus.value;
userAnswer = muteStatus?.value;
}
totalScore += compareAndScore(userAnswer, rightAnswer, point, key, scoringResult);
}
@@ -649,7 +649,7 @@ function getGmepScore(gmepData, scoringJson, index) {
if (!crTrackClip) {
userAnswer = null;
} else {
const length = parseInt(crTrackClip.getAttribute('Length'), 10);
const length = crTrackClip.getAttribute('Length');
userAnswer = length;
}
}