feat: publish verified five-bank question dataset
This commit is contained in:
+2
-3
@@ -22,9 +22,8 @@ const QBAuto = (() => {
|
||||
try { question = core.normalizeRecord({ ...current, answerStatus: 'missing' }); }
|
||||
catch (_) { return result('unsupported', '当前题目结构不完整,已跳过。'); }
|
||||
if (!['single', 'multiple', 'judge'].includes(question.type) || question.options.length < 2 || question.options.length > 100) return result('unsupported', '当前题型暂不支持自动选择。');
|
||||
const contents = question.options.map(option => optionKey(option.text, question.type));
|
||||
// Multiple-choice repeated text is checked against explicit correct IDs by mapAnswers.
|
||||
if ((question.type !== 'multiple' && new Set(contents).size !== contents.length) || new Set(question.options.map(option => option.label)).size !== question.options.length) return result('ambiguous', '当前选项文字或标记重复,无法唯一对应,已跳过。');
|
||||
// Repeated text requires mapAnswers to prove the complete option identity or correct set.
|
||||
if (new Set(question.options.map(option => option.label)).size !== question.options.length) return result('ambiguous', '当前选项标记重复,无法唯一对应,已跳过。');
|
||||
const relevant = [];
|
||||
for (const input of records) {
|
||||
let record;
|
||||
|
||||
Reference in New Issue
Block a user