|
|
@ -136,7 +136,8 @@ export default class LuoguProvider implements IBasicProvider {
|
|
|
|
logger.info('Fetched with length', JSON.stringify(body).length);
|
|
|
|
logger.info('Fetched with length', JSON.stringify(body).length);
|
|
|
|
const total = flattenDeep(body.currentData.testCaseGroup).length;
|
|
|
|
const total = flattenDeep(body.currentData.testCaseGroup).length;
|
|
|
|
// TODO sorted
|
|
|
|
// TODO sorted
|
|
|
|
for (const subtask of data.detail?.judgeResult?.subtasks || []) {
|
|
|
|
if (data.detail.judgeResult) {
|
|
|
|
|
|
|
|
for (const subtask of data.detail.judgeResult?.subtasks || []) {
|
|
|
|
for (const cid of Object.keys(subtask.testCases)) {
|
|
|
|
for (const cid of Object.keys(subtask.testCases)) {
|
|
|
|
if (done[`${subtask.id}.${cid}`]) continue;
|
|
|
|
if (done[`${subtask.id}.${cid}`]) continue;
|
|
|
|
done[`${subtask.id}.${cid}`] = true;
|
|
|
|
done[`${subtask.id}.${cid}`] = true;
|
|
|
@ -153,6 +154,7 @@ export default class LuoguProvider implements IBasicProvider {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
if (data.status < 2) continue;
|
|
|
|
if (data.status < 2) continue;
|
|
|
|
logger.info('RecordID:', id, 'done');
|
|
|
|
logger.info('RecordID:', id, 'done');
|
|
|
|
// TODO calc total status
|
|
|
|
// TODO calc total status
|
|
|
|