Browse Source

bugfix:在匿名是去除user和userid

pull/26/head
zjz1993 5 years ago
parent
commit
a4a8db9787
  1. 4
      libs/submissions_process.js

4
libs/submissions_process.js

@ -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,

Loading…
Cancel
Save