forked from Gitlink/forgeplus
fixed 个人提交作品增加历史,时间
This commit is contained in:
parent
27b39513d2
commit
2d6cbd6b04
|
@ -14,6 +14,7 @@ json.data do
|
|||
json.last_score @stage.present? ? c_user.stage_last_score(@stage) : c_user.last_score
|
||||
json.other_score_json @stage.present? && c_user.stage_max_score_data(@stage).present? ? c_user.stage_max_score_data(@stage): c_user.api_result_data
|
||||
json.history_scores c_user.competition_user_scores do |user_score|
|
||||
json.created_at user_score.created_at
|
||||
json.score user_score.api_result_data
|
||||
end
|
||||
json.enroll_template do
|
||||
|
|
|
@ -19,6 +19,7 @@ json.data do
|
|||
json.score @stage.present? ? @competition_user.stage_score(@stage) : @competition_user.score
|
||||
json.last_score @stage.present? ? @competition_user.stage_last_score(@stage) : @competition_user.last_score
|
||||
json.history_scores @competition_user.competition_user_scores do |user_score|
|
||||
json.created_at user_score.created_at
|
||||
json.score user_score.api_result_data
|
||||
end
|
||||
json.enroll_template do
|
||||
|
|
Loading…
Reference in New Issue