fixed 个人提交作品增加历史

This commit is contained in:
xxq250 2025-07-31 17:07:58 +08:00
parent b6f7e018f0
commit 487cee411b
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ json.data do
json.api_result_text @stage.present? ? @competition_user.stage_api_result_text(@stage) : @competition_user.api_result_text
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 c_user.competition_user_scores do |user_score|
json.score user_score.api_result_data
end
json.enroll_template do
file = Attachment.where_id_or_uuid(@competition_user.enroll_template_id).first
json.partial! 'attachments/attachment_simple', attachment: file if file.present?