|
|
@ -5,8 +5,8 @@ const getSubmissionInfo = (s, displayConfig) => { |
|
|
|
return { |
|
|
|
return { |
|
|
|
submissionId: s.id, |
|
|
|
submissionId: s.id, |
|
|
|
taskId: s.task_id, |
|
|
|
taskId: s.task_id, |
|
|
|
user: s.user.username, |
|
|
|
user: s.is_anonymous ? null: s.user.username, |
|
|
|
userId: s.user_id, |
|
|
|
userId: s.is_anonymous ? null : s.user_id, |
|
|
|
problemName: s.problem.title, |
|
|
|
problemName: s.problem.title, |
|
|
|
problemId: s.problem_id, |
|
|
|
problemId: s.problem_id, |
|
|
|
language: displayConfig.showCode ? ((s.language != null && s.language !== '') ? syzoj.languages[s.language].show : null) : null, |
|
|
|
language: displayConfig.showCode ? ((s.language != null && s.language !== '') ? syzoj.languages[s.language].show : null) : null, |
|
|
|