2504회 채점기준표/자료 업데이트
This commit is contained in:
@@ -11,7 +11,8 @@ const getGpdpScore = require('./gpdpScoring.js');
|
||||
const getToday = require('./getToday.js');
|
||||
const todayDate = getToday();
|
||||
|
||||
const examRound = '0000';
|
||||
const examRound = '2504';
|
||||
const dic_or_dpi = 'DIC'
|
||||
const examTypes = [
|
||||
'A',
|
||||
'B',
|
||||
@@ -27,8 +28,18 @@ const outputExcelFiles = [];
|
||||
|
||||
examTypes.forEach(type => {
|
||||
const scoringJson = require(`./DIC_${examRound}${type}.json`);
|
||||
const answerFilesDir = `./output/${type}/${testMode ? 'TEST' : 'DIC'}`;
|
||||
const outputExcelFile = `./${todayDate}_DIC_${examRound}${type}_${testMode ? 'TEST.xlsx' : '채점결과.xlsx'}`;
|
||||
const answerFilesDir = `./output/${examRound}/${type}/${testMode ? 'TEST' : dic_or_dpi}`;
|
||||
let outputExcelFile = `./${todayDate}_${dic_or_dpi}_${examRound}${type}_채점결과.xlsx`;
|
||||
if (testMode) {
|
||||
outputExcelFile = `./00_${dic_or_dpi}_${examRound}${type}_TEST.xlsx`;
|
||||
}
|
||||
// const scoringJson = require(`./DIC_${examRound}${type}.json`);
|
||||
// const answerFilesDir = `./output/${examRound}/${type}/${testMode ? 'TEST' : 'DIC'}`;
|
||||
// let outputExcelFile = `./${todayDate}_DIC_${examRound}${type}_채점결과.xlsx`;
|
||||
// if (testMode) {
|
||||
// outputExcelFile = `./00_DIC_${examRound}${type}_TEST.xlsx`;
|
||||
// }
|
||||
|
||||
|
||||
// 답안 폴더 내부에 디렉토리가 아닌 일반 파일이 있을 경우 디렉토리만 필터링 해서 불러옴
|
||||
const studentDirs = fs.readdirSync(answerFilesDir).filter(file => {
|
||||
|
||||
Reference in New Issue
Block a user