|
|
|
@ -39,7 +39,7 @@ if @shixun
|
|
|
|
|
json.challenge_id challenge.id
|
|
|
|
|
challenge_score = @homework.challenge_score challenge.id
|
|
|
|
|
json.game_score_full challenge_score
|
|
|
|
|
json.game_score @work.work_challenge_score game, challenge_score, challenge.id
|
|
|
|
|
json.game_score number_with_precision (@work.work_challenge_score game, challenge_score, challenge.id), precision: 1
|
|
|
|
|
challenge_comment = @work.shixun_work_comments.find_by(challenge_id: challenge.id)
|
|
|
|
|
json.challenge_comment challenge_comment&.comment
|
|
|
|
|
json.challenge_comment_hidden @user_course_identity < Course::STUDENT ? challenge_comment&.hidden_comment : nil
|
|
|
|
|