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