|
|
@ -293,7 +293,7 @@ app.get('/submission/:id', async (req, res) => { |
|
|
|
formattedCode: judge.formattedCode ? judge.formattedCode.toString("utf8") : null, |
|
|
|
formattedCode: judge.formattedCode ? judge.formattedCode.toString("utf8") : null, |
|
|
|
preferFormattedCode: res.locals.user ? res.locals.user.prefer_formatted_code : true, |
|
|
|
preferFormattedCode: res.locals.user ? res.locals.user.prefer_formatted_code : true, |
|
|
|
detailResult: processOverallResult(judge.result, currentConfig), |
|
|
|
detailResult: processOverallResult(judge.result, currentConfig), |
|
|
|
socketToken: (judge.pending && judge.task_id != null) ? jwt.sign({ |
|
|
|
socketToken: (judge.task_id != null) ? jwt.sign({ |
|
|
|
taskId: judge.task_id, |
|
|
|
taskId: judge.task_id, |
|
|
|
type: 'detail', |
|
|
|
type: 'detail', |
|
|
|
displayConfig: displayConfig |
|
|
|
displayConfig: displayConfig |
|
|
|