Browse Source

bugfix:解决重新测评时有时会出现unkonw的情况。

pull/18/head
zjz1993 5 years ago
parent
commit
743b30a728
  1. 2
      modules/submission.js

2
modules/submission.js

@ -293,7 +293,7 @@ app.get('/submission/:id', async (req, res) => {
formattedCode: judge.formattedCode ? judge.formattedCode.toString("utf8") : null,
preferFormattedCode: res.locals.user ? res.locals.user.prefer_formatted_code : true,
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,
type: 'detail',
displayConfig: displayConfig

Loading…
Cancel
Save