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