|
|
@ -1478,8 +1478,9 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
code_list << {path: path, origin_content: info.origin_content, target_content: info.target_content}
|
|
|
|
code_list << {path: path, origin_content: info.origin_content, target_content: info.target_content}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
{code_rate: code_rate, copy_user_id: copy_user_id, end_time: end_time, final_score: final_score,
|
|
|
|
# TODO: 这里本来应该前端做的,但是现在页面已经刷不开了。
|
|
|
|
all_score: all_score, copy_end_time: copy_end_time, copy_username: copy_username,
|
|
|
|
{code_rate: code_rate, copy_user_id: copy_user.try(:id), end_time: end_time, final_score: final_score,
|
|
|
|
|
|
|
|
all_score: all_score, copy_end_time: copy_end_time, copy_username: copy_user.try(:full_name),
|
|
|
|
username: game.user.full_name, code_list: code_list, subject: challenge.subject, position: challenge.position,
|
|
|
|
username: game.user.full_name, code_list: code_list, subject: challenge.subject, position: challenge.position,
|
|
|
|
id: challenge.id}
|
|
|
|
id: challenge.id}
|
|
|
|
end
|
|
|
|
end
|
|
|
|