Browse Source

Merge branch 'master' of zhaojunzhe/fair-web into master

pull/31/head
richie 5 years ago committed by Gogs
parent
commit
c50363d794
  1. 4
      libs/submissions_process.js

4
libs/submissions_process.js

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

Loading…
Cancel
Save