fixed 个人提交作品增加历史,时间

This commit is contained in:
xxq250 2025-07-31 17:17:16 +08:00
parent 27b39513d2
commit 2d6cbd6b04
2 changed files with 2 additions and 0 deletions

View File

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

View File

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